Sunday, January 11, 2009

Linux command of the week

Linux command of the week

convert

Convert is a great command for resizing images.

I needed to change the size of some images for a web server I was working on this past week. I needed to cut the size of the file down so the page would load faster.

eg $ convert -resize 50% file1.jpg file1.jpg


It can also be used to change the file type

eg $
convert file1.jpg file1.png

For more options see the man pages

No comments: