Easy and fast way for creating thumbnails:
$ for fich in *.jpg;do convert "$fich" -resize 32x32 thumb_"$fich";done
your code works well with square images, but using :
for fich in *.jpg;do convert "$fich" -resize 20% thumb_"$fich";done
for example has the avantage to keep aspect ratio of images
Hi arpauser,
actually, the -resize axb command seems to do keep the aspect ratio anyway, at least on my system.
Add your comment below, or trackback from your own site.
Subscribe to these comments.
Be nice. Keep it clean. Stay on topic. No spam.
You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Name*:
Email*:
Website:
*Required Fields
your code works well with square images, but using :
for fich in *.jpg;do convert "$fich" -resize 20% thumb_"$fich";done
for example has the avantage to keep aspect ratio of images
Hi arpauser,
actually, the -resize axb command seems to do keep the aspect ratio anyway, at least on my system.