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


Click here to return to the 'Lossless rotation of JPG images and thumbnails' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Lossless rotation of JPG images and thumbnails
Authored by: chiensavant on Apr 29, '08 12:22:27AM
I'd rather use an easier way to rotate images, without the need to download an extra freeware. Open Terminal and simply enter the following command :

sips -r 90 (press space) drag and drop your image (whatever format) to the terminal window and press Enter

The end result should look something like this : sips -r 90 /Users/youraccount/Desktop/Image 1.png

This will rotate the image 90° clockwise. Do do the opposite, enter 270 instead. It only turns CW, so you have to do the math...

You can see all related options of sips by entering sips --help in the Terminal.

[ Reply to This | # ]

Lossless rotation of JPG images and thumbnails
Authored by: chiensavant on Apr 29, '08 12:38:41AM
By the way you can do the same with a batch of images by simply applying the rotation to all images contained in a folder. The command is the following :

sips -r 90 (drag and drop your folder to the Terminal, remove the ending space) /*.png

The end result should be pretty similar to this : sips -r 90 /Users/youraccount/Desktop/Folder/*.png

sips can convert jpeg (Jfif & Xiff), TIFF, GIF, PNG according to this Apple technical note. I haven't tested them all ;)

[ Reply to This | # ]

Lossless rotation of JPG images and thumbnails
Authored by: samrod on Jun 07, '08 06:24:00PM

How do you know sips is lossless? I haven't found that mentioned anywhere in Apple's Technote, the sips man page, or even its Image Events AppleScript interface.

I just created an Automator Workflow to rotate an image using sips on the command line, and it changes file sizes after rotation. It doesn't seem to be lossless at all.

Correct me if I'm wrong.
samrod



[ Reply to This | # ]