batch image convert, scale, thumbnail, JPEG(s), retain high resolution using antialias

I had received a CD of photos. All the filenames had spaces in them so since I intended to upload them to a website I wanted to remove all spaces from the filenames. I copied the photos from the CD to a folder on my laptop then ran the following command to remove all spaces from the filenames of all the files in the directory:

rename “s/ *//g” *.*

Next I want to rename all the files to add a prefix. Some of the command link examples I googled looked complicated. But then I came across a reference to Krename (and Thunar file manager). I installed Krename (sudo apt-get install Krename). I selected the wizard interface (recommended for beginers) and proceeded easily.

In a previous blog entry I showed some examples of how to batch scale images using morgrify. I did that but realised the resolution of the resulting images was too poor, so I started searching for a better solution. It didn’t take me long to find Phatch, a simple to use cross-platform GUI Photo Batch Processor utility application. I didn’t check to see if it was available via apt-get…  but it was fairly easy to install the deb package which I download (I resolved some missing dependancies using sudo apt-get install python-wxgtk2.6 python-wxversion) using “sudo dpkg -i packagename.deb“.

The graphical user interface was fairly intuitive and pretty cool. To get high resolution scaled images I used the followng settings:

scale (width 100px, height 75px, resolution: dpi, constrain proportions: true; resample image: antialias, scale down only: yes)
save (filename: <filename>, as: jpg, in <folder>_patch, resolution: dpi, PNG optimize: false, JPG quality: 90, JPG size maximum, 0kb, JPG size tolerance: 5%)

Note that the resulting images are saved to a new folder, up/back one level in the directory structure called “<foldername>_patch”.

The key setting was “resample image: antialias” as it was on something else by default but produced the same results I had obtained when using morgrify.

Next time I receive 20+ images to scale for a website I won’t cringe at the prospect of doing them one at a time!

Using the Patch utility saved me a lot of time.

When I was finished I returned to the Patch website and noted that it has more cool functionality that what I had first realised… Phatch is a simple to use cross-platform GUI Photo Batch Processor which handles all popular image formats and can duplicate (sub)folder hierarchies. Phatch can batch resize, rotate, apply perspective, shadows, rounded corners, … and more in minutes instead of hours or days if you do it manually. Phatch allows you to use EXIF and IPTC tags for renaming and data stamping. Phatch also supports a console version to batch photos on webservers. Phatch is open source and works on Linux, Mac Os X and Windows.

phatch batch image processor

phatch batch image processor


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: