Monmonja Programming Blog

December 6, 2008

Faster way to resize a picture in Linux

Filed under: Ubuntu,linux — Tags: — admin @ 12:46 pm

Here is the fastest way to resize a picture in linux through command line.

Download imagemagick and install it using the ./configure, make, make install or if your using Ubuntu you could sudo apt-get install imagemagick

Open terminal (Alt+F2 gnome-terminal)
Go to the director of your picture, eg desktop
cd ~/Desktop
Convert your picture
convert -resize 100x100! myPic.jpg myPic.png

Explanation:
convert is the program you need
-resize is the function you need for the resizing
100×100! – destination width and height, add ! to force it to 100×100, remove ! and it will respect the ratio of the picture
myPic.jpg is the source file or the file you want to resize
myPic.png is the destination file after the resize is done

Hope it helps

Share and Enjoy:
  • Digg
  • Reddit
  • Slashdot
  • del.icio.us
  • StumbleUpon
  • TwitThis
  • Fark
  • Facebook
  • Technorati
  • Sphinn
  • Furl
  • Google Bookmarks
  • Mixx

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress

Monmonja Programming Blog is Digg proof thanks to caching by WP Super Cache