Today I had to resize large no of photos for an e-commerce website. Maybe it is the same reason why you read this article :).
Images were downloaded from the internet, therefore they were in various sizes varying from 650px to 5000px. Here are the requirements I had when I started this job.
Most especially I am not a fan of wasting my time on repetitive works so AUTOMATION was the most important requirement:).
I tried many solutions and finally found a convenient method that can address all of my above requirements. It was with the Mogrify tool comes with the ImageMagic package.
This is a Linux tool but it’s very simple so please don’t run away :).
I am using Debian derivative OS for this example. If you have any other OS, please use the respective installation command.
sudo apt-get update
sudo apt-get install imagemagick
Note: In my situation, all images were in jpg format but if you have images in various formats please convert all of them to jpg before proceeding.
Upload all of your photos to a folder in the Linux box and open that folder from the CLI.
mogrify -resize 500×500 -extent 500×500 -gravity center -background white *.jpg
That’s it! :). Download your uploaded images and they should be in the required format by now.
You can do much more things with this amazing tool. Please check the official documentation of mogrify to learn more.
Hope this helped!
2017 Honda Pilot Specs, Features, Release Date and PriceThe Honda Pilot is one of the… Read More
2017 Jeep Wrangler Unlimited Specs, Features, Price, and Release DateThe Jeep Wrangler has actually become… Read More
2017 Ford Mustang Specs, Features, Price, and Release DateThe Ford Mustang has been called the… Read More
Complete Specification of 2017 Lexus CT200h F Sport2017 Lexus CT200h F Sport Review – Sport cars… Read More
2017 Acura RLX Review – Exterior, Interior, Engine, Price and Release DateThe Acura RLX has… Read More