Phatch

From Wikipedia, the free encyclopedia

Phatch
Developed by Stani
Initial release 0.1
Written in Python
OS Cross-platform
Available in Multilingual
Genre Raster graphics editor
License GNU General Public License
Website photobatch.stani.be

Phatch (PHoto & bATCH) is a raster graphics editor used to batch process a lot of digital graphics and photographs at once. Typical uses include resizing, rotating, cropping, converting, applying shadows, rounded corners, perspective, reflection and converting between different image formats. It is ideal for creating web graphics and for people not wanting to learn complex editors like the GIMP or Photoshop. Phatch can also be used to rename or copy image files based on the exif or IPTC Information Interchange Model tags.

Phatch uses the Python Imaging Library for its image processing. It can be used on the desktop as a GUI program or on the server as a console program just like ImageMagick. The exif and IPTC IIM functionality can be extended with external libraries such as exiv2.

Contents

[edit] Features

[edit] Actions

Generating thumbnails like this is only three clicks away with Phatch by applying rounded corners,reflection and perspective
Generating thumbnails like this is only three clicks away with Phatch by applying rounded corners,reflection and perspective
Dialog to add Phatch actions
Dialog to add Phatch actions

Phatch has the advantage that it can perform multiple actions at a time where most other graphical batch programs are focused on one action. Imagemagick has similar functionality through the command line but the graphical user interface of Phatch makes it more easy to set up complex tasks. The actions in the list can be reordered with drag and drop. Phatch can save and open action lists which can be applied to any amount of images. Phatch provides these actions:

  • Auto Contrast - Maximize image contrast
  • Background - Put colour under transparent image
  • Border - Crop or add border to all sides
  • Brightness - Adjust brightness from black to white
  • Canvas - Crop the image or enlarge canvas without resizing the image
  • Colorize - Colorize grayscale image
  • Common - Copies the most common pixel value
  • Contrast - Adjust from grey to black & white
  • Convert Mode - Convert the color mode of an image (grayscale, RGB, RGBA or CMYK)
  • Copy - Copy image file
  • Effect - Blur, Sharpen, Emboss, Smooth, …
  • Equalize - Equalize the image histogram
  • Fit - Downsize and crop image with fixed ratio
  • Grayscale - Fade all colours to gray
  • Invert - Invert the colors of the image (negative)
  • Maximum - Copies the maximum pixel value
  • Mask - Apply a transparency mask
  • Median - Copies the median pixel value
  • Minimum - Copies the minimum pixel value
  • Offset - Offset by distance and wrap around
  • Posterize - Reduce the number of bits of colour channel
  • Perspective - Shear 2d or 3d
  • Rank - Copies the rank'th pixel value
  • Reflect - Drops a reflection
  • Rename - Rename image file
  • Rotate - Rotate with random angle
  • Round - Round or crossed corners with variable radius and corners
  • Saturation - Adjust saturation from grayscale to high
  • Save - Save an image with variable compression in different types
  • Scale - Scale an image with different resample filters.
  • Shadow - Drop a blurred shadow under a photo with variable position, blur and color
  • Solarize - Invert all pixel values above threshold
  • Text - Write text at a given position
  • Transpose - Flip or rotate an image by 90 degrees
  • Watermark - Apply a watermark image with variable placement (offset, scaling, tiling) and opacity

[edit] Exif & Iptc Image Inspector

Exploring exif tags in Phatch
Exploring exif tags in Phatch

The image inspector can be used to explore the metadata tags stored in images. The tabs can be passed to any action, which is especially useful for renaming or copying files, but also for data stamping such as date, time, aperture, shutter speed, ... on the picture. Multiple inspectors can be opened at once to compare tag values with a preview of the image.

[edit] Droplet

Phatch can turn itself into a droplet which stays a small graphic on top of the other windows. It processes any images which are dragged and dropped on it.

[edit] Color support

Phatch supports these color modes:

  • Monochrome (1-bit pixels, black and white)
  • Grayscale (8-bit pixels, black and white)
  • RGB (3x8-bit pixels, true colour)
  • RGBA (4x8-bit pixels, RGB with transparency mask)
  • CMYK (4x8-bit pixels, colour separation)
  • P (8-bit pixels, mapped using a colour palette)
  • YCbCr (3x8-bit pixels, colour video format)
  • I (32-bit integer pixels)
  • F (32-bit floating point pixels)

[edit] File Formats

Phatch supports the following file formats:

  • Read & write: bmp,dib,gif,jpe,jpeg,jpg,im,msp, pcx,png,pbm,pgm,ppm,tif,tiff,xbm
  • Read only: cur,dcx,fli,flc,fpx, gbr,gd,ico,imt,mic,mcidas,pcd,psd,bw,rgb,cmyk,sun,tga,xpm
  • Write only: eps,ps,pdf

[edit] Python Console

Phatch interactive Python shell
Phatch interactive Python shell

Phatch has a built in interactive Python console to explore the internals of the program.

[edit] Development

Phatch is being developed on GNU Linux (Ubuntu) by Stani, who is also the author of Stani's Python Editor. Phatch is tested regularly on Windows and Mac Os X to ensure it stays cross-platform. The logo and some icons are designed by Igor Kekeljevic. The other icons are taken from the Open Clip Art Library. Phatch uses bazaar in combination with Launchpad for coordinating its development and translations. Phatch has a Python API and is easily extensible through Python. Although Phatch uses wxPython, no knowledge of it is required as Phatch generates the user interface automatically.

[edit] Distribution

The source code of Phatch is released on its homepage. Binary packages are available in the repositories of Debian, Ubuntu, ArchLinux and OpenSuse. Windows or Mac Os X installers might follow in the future. Phatch requires Python, Python Imaging Library and wxPython (2.6 or more) for the GUI. For better exif and IPTC IIM support it is recommended to install pyexiv2.

[edit] External links