Blank output for Tiff to PDF convertion

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ss5433
Posts: 5
Joined: 2013-06-23T17:06:35-07:00
Authentication code: 6789

Blank output for Tiff to PDF convertion

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Blank output for Tiff to PDF convertion

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Blank output for Tiff to PDF convertion

Post by fmw42 »

You might also identify your version of IM and platform.
ss5433
Posts: 5
Joined: 2013-06-23T17:06:35-07:00
Authentication code: 6789

Re: Blank output for Tiff to PDF convertion

Post 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~
ss5433
Posts: 5
Joined: 2013-06-23T17:06:35-07:00
Authentication code: 6789

Re: Blank output for Tiff to PDF convertion

Post by ss5433 »

I am using ImageMagick-6.8.3-Q1 on Windows 7. Is there any conflict?
ss5433
Posts: 5
Joined: 2013-06-23T17:06:35-07:00
Authentication code: 6789

Re: Blank output for Tiff to PDF convertion

Post 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~ :?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Blank output for Tiff to PDF convertion

Post 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.)
snibgo's IM pages: im.snibgo.com
ss5433
Posts: 5
Joined: 2013-06-23T17:06:35-07:00
Authentication code: 6789

Re: Blank output for Tiff to PDF convertion

Post 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:
Post Reply