Page 1 of 1

Simple Preflighting

Posted: Tue Feb 24, 2015 5:19 pm
by jugganaut
Looking for suggestions for a simple way to check image files - not only PDFs, but jpgs, tiffs and other formats. My first inclination is to use iMagick with ghostscript to simply open an image file up, but there are some files that will open, but are still partially downloaded or incomplete. The end use for the images will be programmatically placed into InDesign...

Re: Simple Preflighting

Posted: Tue Feb 24, 2015 9:03 pm
by gabrielp
You want to check files to see if they are corrupt or incomplete? Anything else you're looking to check for?

Re: Simple Preflighting

Posted: Wed Feb 25, 2015 2:08 am
by jugganaut
Pretty much just if they are corrupt and/or incomplete. After this preflighting, they will be imposed in InDesign. I've seen where InDesign can still place incomplete jogs and this causes problems as you could imagine...

Re: Simple Preflighting

Posted: Wed Feb 25, 2015 2:20 am
by mattbeals
Use a preflight profile with a simple check like "Document is damaged or needs repair"? For the images, I suppose you could open and resave them.

Re: Simple Preflighting

Posted: Wed Feb 25, 2015 4:25 am
by jugganaut
I don't have Pitstop - is that what you are referring about when you say "profile"?

Re: Simple Preflighting

Posted: Wed Feb 25, 2015 6:29 pm
by gabrielp
Well, you could use ImageMagick's identify (with "-regard-warnings -verbose") for images, reading the results of stdout. For JPEGs, you could scan the file for the end of file marker which is something like "\xFF\xD9" or use something like jpeginfo, both discussed here: https://stackoverflow.com/questions/198 ... -jpeg-file

The problem is you'd have to define a test for each filetype which is a pain. Let me know what you end up doing.

Re: Simple Preflighting

Posted: Wed Feb 25, 2015 6:36 pm
by jugganaut
Thanks ya'll...