Rockbox Technical Forums

Third Party => Other Utilities => Topic started by: NiHaoMike on June 27, 2010, 05:47:49 PM

Title: picture resizer
Post by: NiHaoMike on June 27, 2010, 05:47:49 PM
Is there a program that automatically resizes pictures before copying them to my Rockbox device? My PC runs 64 bit Gentoo if it matters.
Title: Re: picture resizer
Post by: bluebrother on June 27, 2010, 06:17:18 PM
The obvious one: ImageMagick can do this.
Title: Re: picture resizer
Post by: NiHaoMike on June 27, 2010, 11:24:51 PM
The obvious one: ImageMagick can do this.
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.
Title: Re: picture resizer
Post by: Chronon on June 27, 2010, 11:37:49 PM
Mogrify might be what you want:
http://www.imagemagick.org/Usage/basics/#mogrify
Title: Re: picture resizer
Post by: Yotto on June 28, 2010, 12:31:56 AM
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.
Title: Re: picture resizer
Post by: achengms on September 29, 2010, 03:34:56 PM
I use faststone to resize all my images in a folder. Its the best free image manipulation software.
Title: Re: picture resizer
Post by: lestatar on October 05, 2010, 02:24:29 AM
I use faststone to resize all my images in a folder. Its the best free image manipulation software.

+1 to this oldish thread.  Fastone is indeed quite nice and free.  2 flavors: an image viewer/basic editing program and a standalone batch capable image resizing app.

I have been using both for a long time.  Quite great - fast and works.