Page 2 of 2
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-15T11:57:36-07:00
by fmw42
What minor version of 6.9.0.x? You said 6.9.0.10 and that showed me the chromaticity. So I will need to check back further.
what does that return?
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-15T13:26:01-07:00
by sbleon
6.9.0-10 is the version. We're using the same version, but I was pointing out that you were checking for Chromaticity on the original PDF, whereas I am interested in whether Chromaticity is included on the TIF generated from the PDF. It doesn't matter to me whether the PDF has the Chromaticity or not.
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-15T16:44:24-07:00
by fmw42
OK I can verify for 6.9.0.10. Note that the PDF you provided is not the same as in your command line example.
Code: Select all
im69010 convert -density 500 -units PixelsPerInch ABSYX.pdf[0] \
-background white -alpha remove -resize 4125x5338 -monochrome -compress Group4 ABSYX.tif
Code: Select all
im69010 identify -verbose ABSYX.tif
Image: ABSYX.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 4125x5338+0+0
Resolution: 500x500
Print size: 8.25x10.676
Units: PixelsPerInch
Type: Bilevel
Base type: Bilevel
Endianess: LSB
Colorspace: Gray
Depth: 1-bit
Channel depth:
gray: 1-bit
Channel statistics:
Pixels: 22019250
Gray:
min: 0 (0)
max: 1 (1)
mean: 0.907487 (0.907487)
standard deviation: 0.289748 (0.289748)
kurtosis: 5.91129
skewness: -2.8127
entropy: 0.616585
Colors: 2
Histogram:
2037057: ( 0, 0, 0) #000000 gray(0)
19982193: (255,255,255) #FFFFFF gray(255)
Rendering intent: Undefined
Gamma: 0.454545
Background color: gray(255)
Border color: gray(223)
Matte color: gray(189)
Transparent color: gray(0)
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 4125x5338+0+0
Dispose: Undefined
Iterations: 0
Compression: Group4
Orientation: TopLeft
Properties:
date:create: 2016-01-15T15:46:03-08:00
date:modify: 2016-01-15T15:46:03-08:00
signature: 7a530e231b3b68f8152baf03864c28058a7e777e89c0080e49606aa41c05c80b
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: min-is-white
tiff:rows-per-strip: 5338
Artifacts:
filename: ABSYX.tif
verbose: true
Tainted: False
Filesize: 153KB
Number pixels: 22.02M
Pixels per second: 244.66GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.0-10 Q16 x86_64 2016-01-14 http://www.imagemagick.org
I will check some other versions, now.
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-15T17:31:15-07:00
by fmw42
.
The change occurs between 6.9.1.1 and 6.9.1.2. I used a simpler command just to test. So you should report this to the Developers forum and see if there is any optional switch (-define perhaps), they can put in the current IM to allow you to turn this off.
Is this an issue simply with what Identify shows or with what is in the TIFF metadata?
Code: Select all
im6911 convert ABSYX.pdf[0] -alpha remove -monochrome -compress Group4 ABSYX.tif
im6911 identify -verbose ABSYX.tif
Image: ABSYX.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 612x792+0+0
Resolution: 72x72
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: LSB
Colorspace: Gray
Depth: 1-bit
Channel depth:
gray: 1-bit
Channel statistics:
Pixels: 484704
Gray:
min: 0 (0)
max: 1 (1)
mean: 0.908334 (0.908334)
standard deviation: 0.288554 (0.288554)
kurtosis: 6.01006
skewness: -2.8302
entropy: 0.442007
Colors: 2
Histogram:
44431: ( 0, 0, 0) #000000 gray(0)
440273: (255,255,255) #FFFFFF gray(255)
Rendering intent: Undefined
Gamma: 0.454545
Background color: gray(255)
Border color: gray(223)
Matte color: gray(189)
Transparent color: gray(0)
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 612x792+0+0
Dispose: Undefined
Iterations: 0
Compression: Group4
Orientation: TopLeft
Properties:
date:create: 2016-01-15T16:25:12-08:00
date:modify: 2016-01-15T16:25:12-08:00
signature: 29e91cfc38e09c75525f2d373608badfa74b565d59b945025e7bc54c705bbae2
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: min-is-white
tiff:rows-per-strip: 792
Artifacts:
filename: ABSYX.tif
verbose: true
Tainted: False
Filesize: 21.5KB
Number pixels: 485K
Pixels per second: 242.35GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.1-1 Q16 x86_64 2016-01-15 http://www.imagemagick.org
Code: Select all
im6912 convert ABSYX.pdf[0] -alpha remove -monochrome -compress Group4 ABSYX.tif
im6912 identify -verbose ABSYX.tif
Image: ABSYX.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 612x792+0+0
Resolution: 72x72
Print size: 8.5x11
Units: Undefined
Type: Bilevel
Base type: Bilevel
Endianess: LSB
Colorspace: Gray
Depth: 1-bit
Channel depth:
gray: 1-bit
Channel statistics:
Pixels: 484704
Gray:
min: 0 (0)
max: 1 (1)
mean: 0.908334 (0.908334)
standard deviation: 0.288554 (0.288554)
kurtosis: 6.01006
skewness: -2.8302
entropy: 0.442007
Colors: 2
Histogram:
44431: ( 0, 0, 0) #000000 gray(0)
440273: (255,255,255) #FFFFFF gray(255)
Rendering intent: Undefined
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Background color: gray(255)
Border color: gray(223)
Matte color: gray(189)
Transparent color: gray(0)
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 612x792+0+0
Dispose: Undefined
Iterations: 0
Compression: Group4
Orientation: TopLeft
Properties:
date:create: 2016-01-15T16:25:00-08:00
date:modify: 2016-01-15T16:25:00-08:00
signature: 29e91cfc38e09c75525f2d373608badfa74b565d59b945025e7bc54c705bbae2
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: min-is-white
tiff:rows-per-strip: 792
Artifacts:
filename: ABSYX.tif
verbose: true
Tainted: False
Filesize: 21.6KB
Number pixels: 485K
Pixels per second: 242.35GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.1-2 Q16 x86_64 2016-01-15 http://www.imagemagick.org
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-19T08:53:22-07:00
by sbleon
Thanks again, Fred! This is some of the best OSS community support I've ever experienced
I posted in Developers here:
viewtopic.php?f=2&t=29009. We should probably continue the discussion there to avoid forking it. But I wanted to answer your question:
The presence of the Chromaticity section in `identify`'s output correlates with the TIFF file being unusable in my workflow. I believe that `identify` is revealing something from the file metadata that is different between 6.9.1.1 and 6.9.1.2, but I can't say that with 100% certainty.
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-19T10:39:17-07:00
by fmw42
Out of curiosity, what tool does not read the TIFF files with chromaticity? Have you corresponded with the creator of that tool about the issue?
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-19T10:56:05-07:00
by sbleon
It's a (very) old version of Exstream Dialogue. It's proprietary software, and I'm sure our version of it is far past EOL. I'm trying to figure out if we can modernize/replace it, but that process is going to take a while.
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-19T12:40:05-07:00
by fmw42
sbleon wrote:It's a (very) old version of Exstream Dialogue. It's proprietary software, and I'm sure our version of it is far past EOL. I'm trying to figure out if we can modernize/replace it, but that process is going to take a while.
Thanks.
Re: Remove Chromaticity info in PDF->TIFF
Posted: 2016-01-20T14:02:44-07:00
by sbleon
Good news! I was finally able to convert a PDF to a usable TIFF using a current version of ImageMagick (6.9.3-0)! Here is the updated command:
Code: Select all
convert -density 500 -units PixelsPerInch ACBYX.pdf[0] -background white -alpha remove -define white-point=0x0 -resize 4125x5338 -monochrome -compress Group4 ACBYX.tif
The “-define white-point=0x0” setting is new, and it appears to prevent the troublesome Chromaticity data from being written to the TIFF file.