Sunday, January 5, 2014

Resizing images for Email

Overview 

Re sizing or reducing the image size will be helpful for us in cases like
  1. Sending set of images via email .
  2. Portable drive space for set of bulk images
Most of email servers have limitations with maximum size of attachments. You can upload and provide the link but for some privacy reasons you prefer to send photos via email.This post provides just two commands for reduce size of set of bulk images.

How to

First install imagemagick with this command.
sudo apt-get install imagemagick

Then go to your images directory and run this command. here size of image is specified as 640x480 and format as JPG. You can modified it your own.

for file in *.JPG; do convert -geometry 640x480 $file $file-modified; done

Imagemagick

Here I have used command line tool called imagemagick with Linux . You can install imagemagick in many operating systems like Windows,Mac too. Imagemagick is not only used in reducing sizes but it also provides capability of converting,applying special effects via simple commands.
just check it here.
http://www.imagemagick.org/script/convert.php

No comments :

Post a Comment