Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Rotate iPhoto2 images without losing quality Apps
iPhoto lets you easily rotate pictures 90 degrees but it (at least iPhoto 2) will decompress and recompress the image, causing some image deterioration if the image is in JPEG format. The Indendepent JPEG Group's jpegtran command can be used to rotate JPEG images without losing any quality if the picture dimensions are multiple of the iMCU size (8 or 16 pixels usually). jpegtan is part of the libjpeg library, so you'll need to install that first. Use Fink (libjpeg 6b-6 package) or DarwinPorts (jpeg package) to get the program.

Next you'll need my rotate90r.applescript AppleScript. Use Script Editor to save it as an application somewhere. It is my first piece of AppleScript, so be kind to it. If you drop one or more pictures on its icon, it will rotate the images 90 degrees clockwise in place. The AppleScript is written assuming a Fink installation of jpegtran; if you used DarwinPorts, you'll need to modify the set trancmd line to match your installation.

Then launch iPhoto and open its Preferences. There is a field called "Opens in other:". Select the AppleScript application you just saved. If you also select the "Opens in other:" button, then a double click will rotate the selected picture. Or you can Control-click picture and select "Edit in external editor." iPhoto will save the original picture when you rotate it the first time, so you can use "Revert to Original" menu to undo rotation.

[robg adds: I haven't tested this hint, but I looked at the AppleScript, and there's clearly nothing malicious in there...]

    •    
  • Currently 2.50 / 5
  You rated: 4 / 5 (4 votes cast)
 
[7,827 views]  

Rotate iPhoto2 images without losing quality | 5 comments | Create New Account
Click here to return to the 'Rotate iPhoto2 images without losing quality' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cameraid
Authored by: paulio on Feb 04, '04 11:43:45AM
Cameraid also does lossless jpeg rotation.

http://www.macupdate.com/info.php/id/3063

[ Reply to This | # ]

Cameraid
Authored by: Tom Robinson on Feb 04, '04 01:11:59PM
As does GraphicConverter... http://www.lemkesoft.com/en/graphcon.htm.

[ Reply to This | # ]
Cameraid
Authored by: mhorn on Feb 05, '04 07:11:15PM
As does Picture Namer.

[ Reply to This | # ]
Rotate iPhoto2 images without losing quality
Authored by: asan102 on Feb 04, '04 11:40:19PM

Is it jpegtan or jpegtran ? You have two different names in the article...



[ Reply to This | # ]
Rotate iPhoto2 images without losing quality
Authored by: jeremyrh on Feb 12, '04 03:31:37AM

This works like a charm - thanks. Much quicker than firing up a whole graphics app just to do one tiny (but important) job.

What I can't understand is how Photoshop which costs a bazillion dollars can't do this itself!



[ Reply to This | # ]