cmd

Thumbnails

Easy and fast way for creating thumbnails:

$ for fich in *.jpg;do convert "$fich" -resize 32x32 thumb_"$fich";done

2 Comments

  • On 01.05.09 arpauser said:

    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

  • On 01.05.09 pfortuny said:

    Hi arpauser,

    actually, the -resize axb command seems to do keep the aspect ratio anyway, at least on my system.

speak up

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>

*Required Fields