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
This week Top Posts
- 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 |
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7 : OpenLDAP is a free open source Light Weight Directory Access protocol developed by the OpenLDAP proj...0 comments |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...1 comment |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update : Canonical has released security updates for Ubuntu 12.04 LTS and advices to update your system as so...0 comments |
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
- CentOS 6.5 Has Been Officially Released!
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .