Checking for flipped images
Lately I’ve had a couple of people ask me if there is any way to automatically test documents for flipped images. Editors are often concerned about this, since a photograph used in an editorial fashion should not be flipped.
Unfortunately, InDesign’s Live Preflight feature cannot be configured to test for flipped images. So I’ve whipped up a script that does just that. The script will examine the active document, and if any flipped images are found, the script creates a report that lists the name of the images, the pages they are located on, and how the images are flipped (vertically or horizontally). You can download the script here.
Once I began scripting this solution, I ran into a bunch of interesting issues, such as:
- InDesign allows you to flip either the frame containing the image, and/or the image within the frame. The script reports whether the “flip” has been applied to the image or the frame.
- Should the image be reported if it has been flipped both horizontally and vertically? I chose not to report this, since this is the same result you would get if the image were rotated 180 degrees.
- What about graphics that are inline, anchored, or in table cells? The script handles these cases properly.
- What about graphics that have been pasted into InDesign, so they don’t appear in the links panel? The script will report if these have been flipped, except in the case of pasted graphics that are inline, anchored, or in table cells.
The script does not attempt to “fix” or unflip the images. I believe it is more useful to have a script that just alerts you to the occurrence of flipping, allowing you to fix the items as needed. If you prefer a script that fixes all flips automatically, see this discussion on the Adobe forums.