To create thumbnails use the -thumbnail option of the convert command. This option preserves the aspect ratio of the picture. So you need to specify just the width or height of your thumbnail.
Sample commands look like
convert -thumbnail 160 original.jpg thumbnail.jpg
convert -thumbnail x160 original.jpg thumbnail.jpg
The first one creates the thumbnail whose width is 160 pixels. The second one creates a thumbnail whose height is 160 pixels.
Ref :- Linux Multimedia Hacks - Tips & Tools for taming images, audio, and video by Kyle Rankin
On Debian GNU/Linux machines, convert command is part of imagemagick package. You can install the imagemagick package using apt-get
apt-get install imagemagick
Feedback, comments, suggestions are most welcome and can be left in the comments field of this blog.
Malayamarutham is a mellifluous raaga in carnatic music which will make one soft at heart. In telugu, malaya maarutham is a cool evening breeze which invigorates mind, body & heart.
Feedback, suggestions, criticisms, typos, mistakes, errors etc., (no matter how small you think they are) on the articles of this blog are very welcome. They can be directed to kamaraju at gmail dot com.
No comments:
Post a Comment