AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
October 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date


The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems

Valid HTML 4.01!


2007.10.04 18:47 "Pink pages with tiff2pdf -j", by Chris Gentle
2007.10.04 19:14 "Re: Pink pages with tiff2pdf -j", by Bob Friesenhahn
2007.10.04 20:33 "Re: Pink pages with tiff2pdf -j", by Ed Grissom
2007.10.04 21:34 "Re: Pink pages with tiff2pdf -j", by Frank Warmerdam
2007.10.04 21:40 "Re: Pink pages with tiff2pdf -j", by Ed Grissom
2007.10.05 20:22 "Re: Pink pages with tiff2pdf -j", by Chris Gentle

2007.10.04 20:33 "Re: Pink pages with tiff2pdf -j", by Ed Grissom

The tiff2pdf "-j" option creates JPEG data inside the PDF. 

Mistaking RGB for YCbCr or vice-versa in JPEG compression typically
shows up as pink and green images (which is what we are seeing here). 
Does this ping anyone's memory about recent changes ?   

ed grissom

-----Original Message-----
[] On Behalf Of Bob Friesenhahn
Sent: Thursday, October 04, 2007 2:15 PM
To: Chris Gentle
Subject: Re: [Tiff] Pink pages with tiff2pdf -j

On Thu, 4 Oct 2007, Chris Gentle wrote:

> Hi.  I hope someone can help me out.  I have been trying to scan a
> bunch of old paperwork and convert this stuff to PDF.  Basically
> I've been scanning individual pages into *.tif files and converting
> them to PDF as follows:
> tiffcp *.tif /tmp/zzz.tif
> tiff2pdf -j /tmp/zzz.tif > zzz.pdf

What does 'tiffinfo' say regarding the TIFF files that you scan?
Does software like GIMP and ImageMagick display those TIFF files 

Are you able to provide an original TIFF file and the PDF which was 

> To my surprise, I found that all of the scans I had been working on
> for so long all appeared to be pink in Acroread, ghostscript, gimp,
> etc.  I even tried converting my PDF files to other formats with
> ImageMagick but the results were still pink.

It is quite common for programs to use Ghostscript in order to read 
PDF files.  Acroread is the only program you listed which definitely 
does not.  Except for Acroread, the pink rendering could just as 
easily be blamed on something to do with Ghostscript.

> I downgraded back to KPDF 3.5.5 and it still displays the images
> properly.  I feel like this is a bug in the tiff2pdf code and that
> kpdf suffered from the same bug and displayed the PDF files
> correctly.

Quite a few bugs have been reported against tiff2pdf lately.

> I'm hoping someone who knows about the internals of this stuff can
> tell me how I can salvage all of the scans that I've converted to
> PDF.  If KPDF 3.5.5 can display the images properly then the data I
> need is still in those PDF files, I just need to turn off that pink
> layer.

The "pink" is easily removed but I would not worry about it until it 
is determined that there is really something wrong with your PDF 

> Any help would be appreciated.  I'd also like to know whether anyone
> can reproduce this with tiff2pdf -j.  I'm currently using
> tiff-3.8.2.

I just tried with 3.9.0beta but did not see any pink in the output.

Bob Friesenhahn,
GraphicsMagick Maintainer,