Resize Images From Terminal Using ImageMagick
ImageMagick - is a free software suite for the creation, modification and display of bitmap images.
There are other applications like GIMP that can be used to convert and resize images, but I like to do it the terminal way, which you might also give a try.
ImageMagick has a lot of additional utilities. Am going to talk about one of them, that is the convert.
If ImageMagick is not installed on your system you can install by running the commands below (Ubuntu)
$ sudo apt-get install imagemagick
After installation, we can now resize our images.
To resize an image
The syntax to follow:
$ convert old_image -resize % new_image
$ convert unixmen.jpg -resize 60% unixmen_new.jpg
Understanding the above command.
If we execute the above command, the image unixmen.jpg will be resized by 60% and saved under a new name unixmen_new.jpg. (Without modifying the original file unixmen.jpg)
Converting image formats
If you want to convert images from one format to another, ImageMagick can help you do that very easily by the help of a single command.
$ convert image_name.jpg image_name.png
$ convert unixmen.jpg unixmen.png
Running the above command quickly converts the image unixmen.jpg to a new format unixmen.png keeping the the first one intact without any modification.
Like us on Facebook
We need your assistance to stay live
This week Top Posts
- Wow! Linux Foundation To Offer Free Linux Course This Summer Worth $2,400 on EdX : Wow! Early last week it was all over the internet, if you haven't heard it yet then this is the t...1 comment |
- Grive: An Unofficial, Open Source Linux Client For Google Drive : A couple of months before, we have featured a Linux client for Google Drive named Syncdrive, which w...1 comment |
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Install Sublime Text 3 In Fedora Easily With Fedy : Sublime Text is a sophisticated text editor for code, markup and prose. In this tutorial we are goi...0 comments |
- How To "Fix E: Could not open file /var/lib/dpkg/status" : QUESTION: I get the following error when I use sudo apt-get update: E: Could not open file /var/...0 comments |
- Install nSnake Game In Terminal : From github repo nsnake is a clone of the classic snake game that we all used to play on our cellp...0 comments |
- How To Access A LVM Drive / Partition in Ubuntu
- How To Disable Remember Open Files in Sublime Text 3
- Install Sublime Text 3 In Fedora Easily With Fedy
- Grive: An Unofficial, Open Source Linux Client For Google Drive
- Install nSnake Game In Terminal
- How To “Fix E: Could not open file /var/lib/dpkg/status”
- Wow! Linux Foundation To Offer Free Linux Course This Summer Worth $2,400 on EdX
- Fedora 21 Scheduled For Release In October
- Install Uget Download Manager In Ubuntu, Fedora, Debian
- Download Elementary OS ‘Luna’ Official Wallpapers
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .