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 openNext, go to iPhoto’s Preferences window (iPhoto → Preferences, or
-,) and follow these steps:
In the Double-Click section, click on the radio button next to “Opens in other”.
Click on the Select button.
Choose
LaunchGIMPas the application.Close the Preferences window (

-W).
Quit iPhoto (
-Q).
When you relaunch iPhoto, you will be able to use the GIMP as your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access