-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kevin Brown wrote: > Deepak Saxena wrote: > >> Thumbnails: >> >> for file in `ls *.jpg` >> do >> thumbfile=`echo $file | sed s/.jpg/t.jpg` >> convert --resize 320x240 $file $thumbfile >> done > > > Only problem with doing the 320x240 option is that you are assuming that > the full file is that same scale. Instead it might be better to just > fix one of the sizes and let the other be scaled to that. E.g. fix the > height at 320 OR the width at 240. This has the advantage of not > causing a skewing effect from the original image. I am reading the imagemagick online information. Very good stuff: http://www.cit.gu.edu.au/~anthony/graphics/imagick6/ for example. Anyway, my question that came up from the above comments is not answered. Do the convert or mogrify commands maintain portrait and landscape orientation? "Picture" this situation: I have a directory with 1 2272x1704 pixel photos and 1 in rotated portrait orientation, 1704x2272. What will - -resize 320x240 options result in? I tested a bit! - -resize 320x240 ---> landscape 320x240, portrait 180x240 - -resize 240x320 ---> landscape 240x180, portrait 320x240 So, either the resize has to be done before the rotation or the script needs to be smart enough to detect the portrait rotated images and change the resize option. That makes the script more complex. Alan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFDcXuKDQw/VSQuFZYRAkzVAJ0TqRfXwaKehu3eVLzx1npRHg7KnACfcQl7 5zpN8tx0Io5frm42k3GzOvw= =R9JW -----END PGP SIGNATURE----- --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss