Behavior change in 6.9.1.2 - re: PDF->TIF, Chromaticity

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
sbleon
Posts: 14
Joined: 2016-01-05T11:31:47-07:00
Authentication code: 1151

Behavior change in 6.9.1.2 - re: PDF->TIF, Chromaticity

Post by sbleon »

Hi, folks! Thanks for all of your hard work on ImageMagick!!!

I'm using ImageMagick to convert PDFs to TIFFs as part of a pre-print process. Starting with version 6.9.1.2, `convert` does not generate files that my (very picky, legacy) software can use. The only correlated difference I can see with `identify` is that unusable TIFFs include Chromaticity information, while usable ones do not.

There's a full discussion here:
viewtopic.php?f=1&t=28932

You can see the behavior change pretty clearly in fmw42's post here:
viewtopic.php?f=1&t=28932&start=15#p129296

So, I'm unable to upgrade past 6.9.1 unless there's a way to prevent the Chromaticity information from being written to the TIFF file. fmw42 suggested that a -define flag might be one way to approach this. Any ideas?
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Behavior change in 6.9.1.2 - re: PDF->TIF, Chromaticity

Post by dlemstra »

Could you try adding `-define white-point=0x0` to your command and test if that resolves your issue. This 'hidden feature' should allow you to set the white point of the chromaticity to zero and that will prevent it from being written to the file.

I also tried to see if I could figure out which change caused this behavior but I am unable to find the culprit.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Behavior change in 6.9.1.2 - re: PDF->TIF, Chromaticity

Post by fmw42 »

I also tried to see if I could figure out which change caused this behavior but I am unable to find the culprit.
It occurred between 6.9.1.1 and 6.9.1.2.
sbleon
Posts: 14
Joined: 2016-01-05T11:31:47-07:00
Authentication code: 1151

Re: Behavior change in 6.9.1.2 - re: PDF->TIF, Chromaticity

Post by sbleon »

@dlemstra that did the trick! I added the -define before my -resize and Chromaticity is gone and my crummy old software now happily consumes the TIFF files generated by ImageMagick. Thanks!
Post Reply