Odd behavior when recoloring a black and white Photoshop create tiff
Posted: 2015-08-06T17:56:19-07:00
I am at trying to recolor a black and white photoshop tiff and ran into this problem.
I am attempting to recolor the white in this image
https://github.com/BrandonMathis/magik_ ... f?raw=true
to #8649ba
The above command results in this image which has magenta in it, not #8649ba which is closest to magenta:
https://github.com/BrandonMathis/magik_ ... f?raw=true
The command throws this error
I have more details posted in this github repo where 6 different color conversion requests result in their primary color counterpart.
https://github.com/BrandonMathis/magik_tiff_recolor_bug
Here is an identify on the resulting image with magenta color
I am attempting to recolor the white in this image
https://github.com/BrandonMathis/magik_ ... f?raw=true
to #8649ba
Code: Select all
convert black_square.tif -fill "#8649ba" -opaque "#FFFFFF" out.tif
https://github.com/BrandonMathis/magik_ ... f?raw=true
The command throws this error
Code: Select all
convert: Incompatible type for "RichTIFFIPTC"; tag ignored. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/856.
https://github.com/BrandonMathis/magik_tiff_recolor_bug
Here is an identify on the resulting image with magenta color
Code: Select all
Image: magenta_out.tif
Format: TIFF (Tagged Image File Format)
Mime type: image/tiff
Class: DirectClass
Geometry: 600x600+0+0
Resolution: 72x72
Print size: 8.33333x8.33333
Units: PixelsPerInch
Type: Palette
Base type: TrueColor
Endianess: LSB
Colorspace: sRGB
Depth: 1-bit
Channel depth:
red: 1-bit
green: 1-bit
blue: 1-bit
Channel statistics:
Pixels: 360000
Red:
min: 0 (0)
max: 1 (1)
mean: 0.4996 (0.4996)
standard deviation: 0.5 (0.5)
kurtosis: -2
skewness: 0.0016
entropy: 1
Green:
min: 0 (0)
max: 0 (0)
mean: 0 (0)
standard deviation: 0 (0)
kurtosis: 0
skewness: 0
entropy: nan
Blue:
min: 0 (0)
max: 1 (1)
mean: 0.4996 (0.4996)
standard deviation: 0.5 (0.5)
kurtosis: -2
skewness: 0.0016
entropy: 1
Image statistics:
Overall:
min: 0 (0)
max: 1 (1)
mean: 0.333067 (0.333067)
standard deviation: 0.408248 (0.408248)
kurtosis: -0.332263
skewness: 1.08997
entropy: nan
Colors: 2
Histogram:
180144: ( 0, 0, 0) #000000 black
179856: (255, 0,255) #FF00FF magenta
Rendering intent: Perceptual
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: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 600x600+0+0
Dispose: Undefined
Iterations: 0
Compression: LZW
Orientation: TopLeft
Properties:
date:create: 2015-08-06T20:49:23-04:00
date:modify: 2015-08-06T20:49:23-04:00
dc:format: image/tiff
photoshop:ColorMode: 0
signature: 1ca9e17fb3133c57790143cef1f83c9252fd86e5c5c55cfbed4745044fec338d
tiff:alpha: unspecified
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 36
xmp:CreateDate: 2015-07-28T11:51:42-04:00
xmp:CreatorTool: Adobe Photoshop CC 2015 (Macintosh)
xmp:MetadataDate: 2015-07-28T17:07:21-04:00
xmp:ModifyDate: 2015-07-28T17:07:21-04:00
xmpMM:DocumentID: xmp.did:7f6ce280-2928-424a-975f-77f443ca9473
xmpMM:InstanceID: xmp.iid:93fa8981-d8e4-4468-b009-c3b696d91dd1
xmpMM:OriginalDocumentID: xmp.did:7f6ce280-2928-424a-975f-77f443ca9473
Profiles:
Profile-8bim: 4140 bytes
Profile-xmp: 14305 bytes
Artifacts:
filename: magenta_out.tif
verbose: true
Tainted: False
Filesize: 24.4KB
Number pixels: 360K
Pixels per second: 360GB
User time: 0.000u
Elapsed time: 0:01.000
Version: ImageMagick 6.9.1-10 Q16 x86_64 2015-07-26 http://www.imagemagick.org