Scripting Imagemagick (was Re: [plug] Scripting Gimp)

Mike Holland myk at westnet.com.au
Wed Oct 29 09:29:28 WST 2003


On Tue, 28 Oct 2003, Peter Wright wrote:

> > > convert -size 320x200 -resize 320x200 -quality 70 input.jpg output.jpg

Thats a bit too easy. How about something more in the Unix philosophy?

$ djpeg -fast -scale 1/4 input.jpg | pnmscale -xysize 320 200 \
   | cjpeg -quality 70 > output.jpg

Is that any faster? You'll need to set the '-scale' depending on the input 
size, for max speed.


-- 



_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list