Do not convert based on file name
Posted: 2008-01-07T09:47:10-07:00
Hello all,
I'm running ImageMagick-6.3.7-Q16 on a W2K3 server. We have PDFs being generated from our InDesign server and IM is converting them to JPEGs as they arrive (we're using WatchDirectory to monitor the folder for new arrivals and it fires a batch script when it sees a new arrival). But some of these PDFs are multipage files that don't need to be converted to JPEGs. Our InDesign guys are flagging these files with a file name that ends in "_999.pdf". Is there a way to have IM recognize such file names and ignore the conversion?
If so, how would I write that in the batch file? The current script looks like this:
"C:\Program Files\ImageMagick-6.3.7-Q16\convert.exe" "%WD_FILE%" -resize 20%% "%WD_FILE_D%%WD_FILE_B%.jpg"
Any help is appreciated.
I'm running ImageMagick-6.3.7-Q16 on a W2K3 server. We have PDFs being generated from our InDesign server and IM is converting them to JPEGs as they arrive (we're using WatchDirectory to monitor the folder for new arrivals and it fires a batch script when it sees a new arrival). But some of these PDFs are multipage files that don't need to be converted to JPEGs. Our InDesign guys are flagging these files with a file name that ends in "_999.pdf". Is there a way to have IM recognize such file names and ignore the conversion?
If so, how would I write that in the batch file? The current script looks like this:
"C:\Program Files\ImageMagick-6.3.7-Q16\convert.exe" "%WD_FILE%" -resize 20%% "%WD_FILE_D%%WD_FILE_B%.jpg"
Any help is appreciated.