[PLUG] PIcture

Richard C. Steffens rsteff at comcast.net
Tue Jan 30 22:21:24 UTC 2007


User Iam wrote:

> When I import my pictures from the camera they are 700K...
> 
> How do I make them thumbnail size???   <17K>

I use convert (included with ImageMagik) to create smaller images from
the ones I download from my camera. I happen to make 800 x 600 images,
but you could change the 800 to the larger dimension of the thumbnail
size you want and get the same thing.

In the directory where I've downloaded the images, I create a directory
named 800. Then I run the following shell script:

------------------------------------------------------------------------
#!/bin/bash
for i in *jpg;
do
convert -size 800x800 -resize 800x800 $i 800/`basename $i .jpg`-800.jpg;
done
------------------------------------------------------------------------

Note that for the script to work, the extension on the image files has
to be jpg, and can't be JPG. If your camera doesn't have a setting for
lower case file names, you'll have to convert them yourself, first. If
that's a concern, let us know. Somewhere, I still have the notes that
told me the three step process for renaming a batch of files.

800x800 produces images that are either 800x600 or 600x800, depending on
which way I held the camera.


Also, see:

http://imagemagick.sourceforge.net/http/www/convert.html

for another example that describes making 120x120 thumbnails.

-- 
Regards,

Dick Steffens




More information about the PLUG mailing list