The shell script does the following:
Code: Select all
for filename in *
do
convert -set reference-black 0 -set reference-white 1023 -depth 16 -colorspace Gray -gamma 1.0 $filename ../convertedTIFs/${filename%.dpx}_gl.tif
done
I have uploaded a source file (DPX) and the ouput file (TIF) here:
https://www.dropbox.com/sh/p4bg3ao7dorxf9u/sIhiU_216R
Even if I strip that convert command down to the bare minimum: "convert source.dpx target.tif", the result is no good.
I am able to make a grayscale TIF in Photoshop, save it out and run it through the target command line app, so I've ruled that application out as the problem.
The system this is on:
Mac OS X 10.6.8
ImageMagick 6.8.8-7 (compiled from source this afternoon, default settings)
LibTIFF 3.8.2 (which the target app requires, not sure if it's relevant here)
The source files were scanned today on our film scanner, and we've tried with 10 and 16 bit DPX files. Because it's coming from a positive, our scanner automatically creates Linear files, so no log->lin conversion should be necessary.
Any thoughts? Suggestions?
What's the best way to compare the TIF file created by ImageMagick (which doesn't work) with the TIF created by Photoshop from the same DPX (this one does work)? Maybe that will shed some light on what's happening.
Thanks!