We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

soroush on 01/13/08


Tagged

resize image imagemagick


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

therobot
adix


Quickly resize images in command line (requires ImageMagick)


Published in: Bash 


This requires ImageMagick installed. Resize, as well as convert the image format. (Note: either of WIDTH or HEIGHT can be left blank, e.g. WIDTHx and the image will be resized proportionally)

  1. convert -resize WIDTHxHEIGHT source.jpg target.png

Report this snippet 

You need to login to post a comment.