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


Click here to return to the '10.4: About Preview and rotated/mirrored images' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: About Preview and rotated/mirrored images
Authored by: dlong on Dec 07, '05 09:01:55AM
Well it's not a fix for Preview, but luckily there is another free way to flip backgrounds.

Install the netpbm utilities to get some really neat, powerful graphics filtering. They can be installed from http://netpbm.darwinports.com/ if you have darwin ports, or http://pdb.finkproject.org/pdb/package.php/netpbm10 if you have fink. I think I just downloaded the source - it compiled and installed cleanly from http://netpbm.sourceforge.net/

Once you have the netpbm utilities, you can do all sorts of things. To flip your background image, open a Terminal and issue a command like djpeg background.jpg | pnmflip -lr | cjpeg > flippedbackground.jpg. More on the syntax for pnmflip, which actually does the flipping, is available at http://linux.about.com/library/cmd/blcmdl1_pnmflip.htm

[ Reply to This | # ]

10.4: About Preview and rotated/mirrored images
Authored by: adrianm on Dec 07, '05 09:40:49AM
Not near a Mac*, but if you're at the command line, try:

sips --flipHorizontal filename
No need to install anything else.

Applscript has access to image manipulations too.

* so this might not actually do anything with the pixels

[ Reply to This | # ]

PhotoTool CM
Authored by: frank nospam on Dec 07, '05 01:11:53PM
Try this freeware contextual menu extension that looks like it implements the sips ImageEvents in friendly GUI form.

It's positively shameful that jpeg editor apps still use lossy rotates in this day and age.



[ Reply to This | # ]
PhotoTool CM
Authored by: RobertBen on Dec 09, '05 07:47:09AM

But PhotoTool CM doesn't support Tiger :-(



[ Reply to This | # ]
10.4: About Preview and rotated/mirrored images
Authored by: derrickbass on Dec 07, '05 04:28:49PM
This will result in some quality loss due to recompression. It turns out that JPEG, even though it is a lossy format, can be rotated and flipped losslessly. I don't know whether sips uses the lossless algorithm, but if not, the jpegtran program can do it. If you have fink, do
fink install libjpeg and then man jpegtran

[ Reply to This | # ]