Server

Workflow

Phatch can be used as a server application. The idea is that you prepare the action lists with the gui and that you can execute them on any server with only python-imaging installed. For example if people upload pictures to your site, you can let Phatch generate the thumbnails you want.

Command Line Options

List

To get the help options type:

$phatch —help
Usage:
Phatch [actionlist]
Phatch [options] [actionlist] [image folders/files/urls]
Phatch —inspect [image files/urls]
Phatch —droplet [actionlist/recent] [image files/urls]
Examples:
phatch action_list.phatch
phatch —verbose —recursive action_list.phatch image_file.png image_folder
phatch —inspect image_file.jpg
phatch —droplet recent
Options:
—version show program's version number and exit
-h, —help show this help message and exit
-c, —console Run Phatch as console program without a gui
-d, —droplet Run Phatch as a gui droplet
-f, —force Ignore errors
—fonts Initialize fonts (only for installation scripts)
-i, —interactive Interactive
-l LOCALE Specify locale language (for example en or en_GB)
-m, —metadata Save metadata (requires exif & iptc plugin)
-n, —inspect Inspect metadata (requires exif & iptc plugin)
—no-save No save action required at the end
-o, —overwrite Overwrite existing images
-r, —recursive Include all subfolders
-s, —strict Do not create missing folders
-t, —trust Do not check images first
-v, —verbose Verbose

More examples

phatch action_list.phatch
phatch —console action_list.phatch
phatch —verbose —recursive action_list.phatch image_file.png image_folder
phatch —inspect image_file.jpg
phatch —droplet recent

Man page

You can also invoke the man page, by typing:

$man phatch

Schedule

This is not only handy for servers, but also if you want to schedule photo batch processing with a program like gnome-schedule on Ubuntu. If you install:

$sudo apt-get install gnome-schedule

you can now for example watch folders by letting phatch process the folder for example every hour. With the action rename you can even move files.

© 2007-2008 www.stani.be
(It is not allowed to copy, distribute or transmit any part of the wiki without written permission.
Only contribute to this wiki if you agree with this term.)