I am having some issues with RGB JPG to CMYK TIF conversion.
I'm using ImageMagick though Node GraphicsMagick.
I have a folder of JPGs, and I want to convert those to CMYK TIF (optimally, with JPEG compression):
Code: Select all
....
.crop(crop.width, crop.height, crop.x, crop.y)
.resize(settings.targetWidth, settings.targetHeight)
.autoOrient()
.density(300, 300)
.units('PixelsPerInch')
.strip()
.colorspace('cmyk')
.compress('JPEG')
.quality(80)
.bitdepth(8)
.write(dest + file + '.tif', function(error) { ....
When I convert those tifs to a PDF, I get a random collection of image data that's randomly cropped and spread across the origins of the pages:

The command I'm using to convert the tifs to PDF is:
Code: Select all
....
.command('convert')
.in('./tests/output/*.tif')
.stream('pdf', function(err, stdout, stderr) { ....
What do you think is the cause of the odd PDF creation? Am I overlooking any steps? What would you recommend in terms of the conversion process? my goal is to make a print-ready PDF.
I probably should mention that I am able to create a normal PDF if I don't convert the original images to TIF.
Thanks!