Page 1 of 1

Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:15:22-07:00
by ss5433
Hi,
I am a new user of ImageMagick, and I only use very basic commands (shown below) to covert tiff images to PDFs. The input files are some survey images. However, I find a small number of the output files are blank while the majority are fine. There is no error message returned in the log, only warnings as shown below. Any idea why it doesn't work? Thanks in advance for your help!

Command:
convert "AA.tif" "BB.pdf" 2>> "C:\Error_ImageMagick.log"

Log:
convert.exe: ASCII value for tag "Software" does not end in null byte. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/824.
convert.exe: ASCII value for tag "DateTime" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/824.
convert.exe: ASCII value for tag "Artist" does not end in null byte. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/824.

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:24:01-07:00
by snibgo
Difficult to guess. Put one of the failing images somewhere on the web, and put the URL here.

If you can't do that, then "identify AA.tif >AA.txt" and paste AA.txt here, between [ code ] and [ /code ] to preserve the formatting.

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:27:49-07:00
by fmw42
You might also identify your version of IM and platform.

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:29:22-07:00
by ss5433
This is the link for the input image, open you can open it:

https://docs.google.com/file/d/0B3auNAU ... sp=sharing

Many many thanks for checking it out~

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:33:49-07:00
by ss5433
I am using ImageMagick-6.8.3-Q1 on Windows 7. Is there any conflict?

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:47:25-07:00
by ss5433
snibgo wrote:Difficult to guess. Put one of the failing images somewhere on the web, and put the URL here.

If you can't do that, then "identify AA.tif >AA.txt" and paste AA.txt here, between [ code ] and [ /code ] to preserve the formatting.
I tried to identify the image, and here is the ouput:

Code: Select all

\\vrpsisdata01\k_drive\DLI_Directory\GASI_GDID\Images\\Splans\5001-6000\\09JUN0005001SP####SSSSS1FFFFFF0.tif TIFF 6176x4576 6176x4576+0+0 1-bit Bilevel Gray 121KB 0.016u 0:00.013
Dont know how to read it tho~ :?

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T17:58:08-07:00
by snibgo
The problem seems to be the resolution, which is set to 6.69 pixels per centimetre. If we reset this to a more sensible 72 dpi, it works. (On Windows 7, IM v6.8.6-0.)

Code: Select all

convert 09JUN0005001SP####SSSSS1FFFFFF0.tif -density 72 x.pdf
(I should have said "identify -verbose AA.tif >AA.txt". Sorry.)

Re: Blank output for Tiff to PDF convertion

Posted: 2013-06-23T18:13:09-07:00
by ss5433
snibgo wrote:The problem seems to be the resolution, which is set to 6.69 pixels per centimetre. If we reset this to a more sensible 72 dpi, it works. (On Windows 7, IM v6.8.6-0.)

Code: Select all

convert 09JUN0005001SP####SSSSS1FFFFFF0.tif -density 72 x.pdf
(I should have said "identify -verbose AA.tif >AA.txt". Sorry.)

Thank you so much, snibgo!!! It does resolve the problem~~ :D :D

I need to tell my boss about the 6.69 pxiels per cm resolution :lol: