Simple Preflighting

Post Reply
jugganaut
Member
Posts: 39
Joined: Wed May 08, 2013 6:48 pm

Simple Preflighting

Post 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...
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Simple Preflighting

Post by gabrielp »

You want to check files to see if they are corrupt or incomplete? Anything else you're looking to check for?
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
jugganaut
Member
Posts: 39
Joined: Wed May 08, 2013 6:48 pm

Re: Simple Preflighting

Post 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...
mattbeals
Member
Posts: 59
Joined: Fri Oct 29, 2010 2:49 am
Location: Edmonds, WA
Contact:

Re: Simple Preflighting

Post 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.
I'm just a dude. Anything I say has nothing to do with any other person or company.
jugganaut
Member
Posts: 39
Joined: Wed May 08, 2013 6:48 pm

Re: Simple Preflighting

Post by jugganaut »

I don't have Pitstop - is that what you are referring about when you say "profile"?
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: Simple Preflighting

Post 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.
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
jugganaut
Member
Posts: 39
Joined: Wed May 08, 2013 6:48 pm

Re: Simple Preflighting

Post by jugganaut »

Thanks ya'll...
Post Reply