6.3 Image Editing

The GIMP (http://www.gimp.org) is one of the best-known open source image manipulation programs. You can get a build for Mac OS X from Fink (see Chapter 11). With the GIMP, you can create drawings, touch up photographs you've taken, convert images, and do much more.

You can even use the GIMP as iPhoto's default image editor. To do this, use the Script Editor ( /Applications/AppleScript ) to create the following AppleScript, and save it as an Application named /Applications/LaunchGIMP :

 on open all_images   repeat with image in all_images     (* replace colons with slashes, prefix path with /Volumes *)     do shell script "perl -e '$f=shift; $f =~ s/:/\//g;  " &         "print \"/Volumes/$f\";' \"" & image & "\""     set image to the result     (* set the X11 DISPLAY variable, and launch gimp-remote *)     do shell script "DISPLAY=:0.0; export DISPLAY;  " &       "/sw/bin/gimp-remote -n \"" & image & "\""   end repeat   tell application "X11" to activate end open 

Next , go to iPhoto's Preferences window (iPhoto Preferences, or figs/command.gif -,) and follow these steps:

  1. In the Double-Click section, click on the radio button next to "Opens in other".

  2. Click on the Select button.

  3. Choose LaunchGIMP as the application.

  4. Close the Preferences window ( figs/command.gif -W).

  5. Quit iPhoto ( figs/command.gif -Q).

When you relaunch iPhoto, you will be able to use the GIMP as your image editing tool the next time you select an image file for editing.

Although gimp-remote's -n option is supposed to launch a new GIMP session if one is not already running, we got a spurious error message indicating the iPhoto image file was not found.

However, if GIMP was already running when we double-clicked the image, this script worked just fine. So, if you want to use GIMP as your iPhoto photo editor, be sure to launch GIMP before you start iPhoto.


There is a modified version of the GIMP, CinePaint (http://cinepaint. sourceforge .net/) that is designed to meet the needs of film professionals. It has been used in the Harry Potter movies, Scooby Doo , and other movies. CinePaint was originally known as Film GIMP, and an earlier version was available through Fink at the time of this writing. Check out the CinePaint web site for the latest version.



Mac OS X Panther for Unix Geeks
Mac OS X Panther for Unix Geeks
ISBN: 0596006071
EAN: 2147483647
Year: 2003
Pages: 212

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net