Phatch – Linux Photo Batch Resizing

In a previous post I mentioned KRename.  It really is my favorite tool for renaming photos once I get them onto my computer from the camera.  I use it the most. But occasionally I need to resize my photos, or I want to resave them to a lower resolution, or a more compressed jpeg.  I often do this when I want to email several photos to people or I want to resize them for this blog (and not use all my allocated memory.)

For these tasks I like to use Phatch. I have it in my Ubuntu 8.04 repository.  If it isn’t in yours you can find the download here for Linux (and Windows and Mac).  Phatch is a neat little tool written in Python that allows you to shrink your photos, apply text, or watermarks, round the edges of photos – then save them with a chosen name.  Like KRename – I’ve never had it destroy a set of my photos (always very important.)  I’ll admit I find the interface a little weird – but it tries it’s best to be intuitive – and I can usually work my way through without much trouble even if I haven’t used it for a couple months.

Here is a very simple example of what Phatch can do:

When you open the program you get the working window:

Phatch Opens with the Action List Window

You then click the “+” key to get a list of possible actions for your photos from which you can choose:

A List of Actions to choose from...

There are MANY more actions than this available. You can read about all of them in the Phatch Wiki.  I usually am simply resizing my photos.  Once you choose an action you are given a variety of options:

Each action has various options from which to choose.

Whatever actions you choose – you need to remember the make the last action the SAVE action.  Here is where I adjust the JPEG quality of my original photos.

Working with SAVE. A variety of image formats are available.

Finally – you can click on the “Gears” button on the main window to choose a folder on which to execute your batch processing:

Choose a folder and files on which to apply your actions

The program will then batch process your files and save them wherever you selected in your SAVE action.

An easy and well written tool for us Linux Photographers.  I hope you enjoy using it.

KRename is a Linux Photographer’s Best Friend

Or – at least – a really great tool to use.

If you are anything more than a casual Linux-based photographer you know that Linux provides its own set of challenges when dealing with your pictures.

Although all photographers don’t do this, I like to rename my pictures as soon as I have downloaded them to my hard drive.  Although some people simply manage their pictures through keywords, metadata, or IPTC standards, I still prefer picture names that give me a little idea of what they contain.  Who wouldn’t prefer “Puppy_first_birthday_22Apr2010_001.jpg” to “DSC1097.jpg“?  Now I don’t need specialized photo software to know what I’m looking at.

If I were really good in Linux I would have written myself a nice script to rename the files from one version to another.  I’m not that good.  But I did find a tool that works great!  KRename.  I’ve attached a couple screenshots of the program.

First, here is what you see when you start up the program – Just drag and drop:

KRename on opening

KRename on opening

There are several options for what you can do with your files:

What you can do with KRename

What you can do with KRename

Finally – you can figure out the new names for your files – including incrementing numbers!

Renaming your Files

Renaming your Files

I did a little looking, and KRename looks like it is in the Ubuntu, Debian, and Fedora repositories.  If you can’t find it, you can go to http://www.krename.net to get the latest version. I have probably renamed over 2000 files with this program (about 20 at a time) – and never had a problem.  I highly recommend it!

Goodluck with your pictures 🙂