Converting TIFF to PDF results in a blank white page

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
deewoo1
Posts: 2
Joined: 2012-05-17T12:52:39-07:00
Authentication code: 13

Converting TIFF to PDF results in a blank white page

Post by deewoo1 » 2012-05-17T14:04:21-07:00

I have a TIFF that results in a blank white page when converted to PDF. It should show the image. The input TIFF image is here
http://ubuntuone.com/2M6VJtVi0blrYaHrxAOsPe

convert --version
Version: ImageMagick 6.6.2-6 2012-04-30 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP

The funny thing is, I sliced this image from a larger TIFF, found here:

http://ubuntuone.com/1fV7GFX4OiVjxDEJ0Gg7SS

The left side slice image converts correctly , but the right image ends up blank.

convert aaaa.tif -rotate 90 -crop 4300x6050+0+0 out/024-left-aaaa.tif.pdf
convert aaaa.tif -rotate 90 -crop 4300x6050+4300+0 out/025-right-aaaa.tif.pdf

The input TIFF is split from a multipage tiff.


Thanks
Dennis

User avatar
fmw42
Posts: 25765
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting TIFF to PDF results in a blank white page

Post by fmw42 » 2012-05-17T14:18:38-07:00

Both of these come out completely white for me under IM 6.7.6.10 beta Q16 Mac OSX Snow Leopard. I think the issue has to do with the colorspace swap sRGB vs RGB which is still undergoing development especially for grayscale/bilevel images. IM is converting the outputs to sRGB color with perceptual rendering intent and not grayscale. This whole colorspace problem is being addressed and hopefully fully resolved by IM 6.7.7.0. But as your release is prior to the change, this may not be the issue.

convert aaaa.tif -rotate 90 -crop 4300x6050+0+0 +repage 024-left-aaaa.pdf
convert aaaa.tif -rotate 90 -crop 4300x6050+4300+0 +repage 025-right-aaaa.pdf

Note the +repage to ensure you remove the virtual canvas. Though this has nothing to do with the problem above.

Using the same command above under IM 6.7.4.10 works fine for me, though the images are upside down. Changing the rotation to -90 fixes that.

deewoo1
Posts: 2
Joined: 2012-05-17T12:52:39-07:00
Authentication code: 13

Re: Converting TIFF to PDF results in a blank white page

Post by deewoo1 » 2012-05-17T15:01:48-07:00

Thanks for that. The +repage operator fixed the problem.

Cheers
Dennis

Post Reply