|
|
|
I often have to rotate my photos to the proper orientation, because my camera doesn't have position sensor. I'd like to do this operation without loss of quality, so I discovered exiftool, which simply rewrites some exif tags. The exiftool itself is a command line application, so I've created a simple GUI in AppleScript. The script is follows:
Save the script as an application and simply drag the image (it should also work for multiple images) on the app. You will be asked which side to rotate. It may happen that you will have to adjust to values in the script (8 and 6); these values work with my camera. I personally use the app as an external editor for iPhoto.
•
[12,144 views]
Hint Options
Rotate photos using exiftool and AppleScript
You can also use jpegtran from the independent jpeg group (ijg.org). It can rotate the jpeg data without re-encoding it.
Rotate photos using exiftool and AppleScript
Don't most modern graphics, photo editing, and image cataloging applications know how to rotate a JPEG image in 90 degree increments without altering the underlying JPEG data? Do we really need special scripts or applications to do this?
Rotate photos using exiftool and AppleScript
You would think so, but for example if you rotate an image in Preview and then upload it to a website, the rotation doesn't take (and it recompresses). Not sure how it's working, but I used to have to use an exif utility when rotating. Lately I've gone back to using photoshop, which also does recompress.
Rotate photos using exiftool and AppleScript
I had sort of the opposite problem; photos taken looking down on a subject often had their EXIF rotation tag set incorrectly because of how I was holding the camera just before turning it to look down. I wrote a shell script called "derotate" that used exiftool to fix the tag: My worry about rotating JPEGs in a graphics program is that the image will degrade because the JPEG compression is reapplied to the rotated image. The nice thing about exiftool is that you can look through the Perl code and see that it's affecting only the EXIF tags, not the image itself. ---
Doc Drang http://www.leancrew.com/all-this
Rotate photos using exiftool and AppleScript
Try the donationware image editor, Xee, which losslessly rotates image files.
Rotate photos using exiftool and AppleScript
If you are using iPhoto the suggested jpegtran is better than exiftool.
Rotate photos using exiftool and AppleScript
nperry wrote
Rotate photos using exiftool and AppleScript
just for information's sake, you can rotate images from applescript using os X's built-in Image Events app:
I don't know this is lossless for a fact, but it uses Apple's Core Image routines which are supposedly pixel-by-pixel transformations, so it should be.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.19 seconds |
|