Shrinking Images

Stewart C. Russell scruss-rieW9WUcm8FFJ04o6PK0Fg at public.gmane.org
Tue Aug 31 15:20:17 UTC 2004


Anton Markov wrote:
> 
> And don't forget 'man imagemagick' for more description of all the options.

Actually, it's case-sensitive: 'man ImageMagick' works here. And, 
hooray, you can specify the resizing filter with '-filter <type>'.

But it still doesn't have a way of specifying optimal JPEG options 
(specifically DCT encoder type), so I might still have to use PPM and cjpeg.

You could do:

for f in *.jpg
do
   convert -geometry 25% $f `basename $f .jpg`_x.jpg
done

to create images at 25%, renamed with '_x'. You might want to play with 
the JPEG quality options, 'cos the defaults are bad nasty.

Alternatively, if you have your website hosted, I'd hugely recommend 
installing Gallery <http://gallery.menalto.com/>. All you need to do is 
upload the pictures -- it handles thumbnailing, layout, the lot.

  Stewart
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list