Third Party > Other Utilities

picture resizer

(1/2) > >>

NiHaoMike:
Is there a program that automatically resizes pictures before copying them to my Rockbox device? My PC runs 64 bit Gentoo if it matters.

bluebrother:
The obvious one: ImageMagick can do this.

NiHaoMike:

--- Quote from: bluebrother on June 27, 2010, 06:17:18 PM ---The obvious one: ImageMagick can do this.

--- End quote ---
How do I have it process all pictures in a directory? There's over 6000 of them so there must be some automated way to do it.

Chronon:
Mogrify might be what you want:
http://www.imagemagick.org/Usage/basics/#mogrify

Yotto:
cd <directory with 6000 files>
md new
for %i in (*.jpg) do convert <switches> %i new\%i

That's for DOS (Windows command line). Linux would be similar in idea.
I don't know what switches specifically to use, but check help on "convert". I bet -size would do it.

**EDIT**

Just saw your gentoo comment

cd <directory with 6000 files>
mkdir new
for i in *.jpg; do convert <switches> $i new/$i; done;

Same disclaimer about the switches.

Navigation

[0] Message Index

[#] Next page

Go to full version