Colors change in TIF to PNG conversion
Posted: 2014-11-29T11:13:37-07:00
I'm trying to convert a TIFF image that was created with Processing to PNG, but the colors are coming out more saturated in the PNG version in some viewers.
The colors look correct when viewed with the following applications: GIMP, Shotwell (Ubuntu), Chrome (Ubuntu), and Safari on an iPhone
They are incorrect when viewed with: Firefox (on Ubuntu or OSX), Safari on OSX, or the "Image Viewer" program on Ubuntu
You can find the TIF here: http://www.tylerlhobbs.com/static/img/i ... /image.tif
And the PNG here: http://www.tylerlhobbs.com/static/img/i ... /image.png
This is my ImagMagick version:
Because the colors appear correct in some viewers, I'm guess that some color information is missing or incorrect in the color profile for the image, but I'm not sure. I have tried using -colorspace sRGB when converting to PNG to no avail. I have also tried adjusting the gamma on the PNG image, which gets it closer to the correct colors, but the result is still too saturated.
Here's the info for the TIF image:
And the info for the PNG image:
Thank you in advance for any suggestions you might have for things to try!
The colors look correct when viewed with the following applications: GIMP, Shotwell (Ubuntu), Chrome (Ubuntu), and Safari on an iPhone
They are incorrect when viewed with: Firefox (on Ubuntu or OSX), Safari on OSX, or the "Image Viewer" program on Ubuntu
You can find the TIF here: http://www.tylerlhobbs.com/static/img/i ... /image.tif
And the PNG here: http://www.tylerlhobbs.com/static/img/i ... /image.png
This is my ImagMagick version:
Code: Select all
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Here's the info for the TIF image:
Code: Select all
Image: image.tif
Format: TIFF (Tagged Image File Format)
Class: DirectClass
Geometry: 800x800+0+0
Resolution: 72x72
Print size: 11.1111x11.1111
Units: PixelsPerInch
Type: TrueColor
Base type: TrueColor
Endianess: MSB
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 22 (0.0862745)
max: 252 (0.988235)
mean: 91.6865 (0.359555)
standard deviation: 44.3927 (0.174089)
kurtosis: 3.84851
skewness: 1.80316
Green:
min: 17 (0.0666667)
max: 229 (0.898039)
mean: 159.566 (0.62575)
standard deviation: 49.9514 (0.195888)
kurtosis: 0.635568
skewness: -1.39959
Blue:
min: 32 (0.12549)
max: 224 (0.878431)
mean: 129.089 (0.506232)
standard deviation: 39.188 (0.153678)
kurtosis: 0.912725
skewness: -0.730359
Image statistics:
Overall:
min: 17 (0.0666667)
max: 252 (0.988235)
mean: 126.781 (0.497179)
standard deviation: 44.7272 (0.175401)
kurtosis: 0.865417
skewness: -0.0746656
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)
Interlace: None
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 800x800+0+0
Dispose: Undefined
Iterations: 0
Compression: LZW
Orientation: TopLeft
Properties:
date:create: 2014-11-29T11:41:35-06:00
date:modify: 2014-11-29T11:41:35-06:00
signature: ea07b01b2f85f739959103743e0ef83520e174489b952ffc18c495a049c68581
tiff:document: image.tif
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 3
Artifacts:
filename: image.tif
verbose: true
Tainted: False
Filesize: 1.256MB
Number pixels: 640K
Pixels per second: 21.33MB
User time: 0.030u
Elapsed time: 0:01.030
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Code: Select all
Image: image.png
Format: PNG (Portable Network Graphics)
Class: DirectClass
Geometry: 800x800+0+0
Resolution: 28.34x28.34
Print size: 28.2287x28.2287
Units: PixelsPerCentimeter
Type: TrueColor
Endianess: Undefined
Colorspace: sRGB
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Red:
min: 22 (0.0862745)
max: 252 (0.988235)
mean: 91.6865 (0.359555)
standard deviation: 44.3927 (0.174089)
kurtosis: 3.84851
skewness: 1.80316
Green:
min: 17 (0.0666667)
max: 229 (0.898039)
mean: 159.566 (0.62575)
standard deviation: 49.9514 (0.195888)
kurtosis: 0.635568
skewness: -1.39959
Blue:
min: 32 (0.12549)
max: 224 (0.878431)
mean: 129.089 (0.506232)
standard deviation: 39.188 (0.153678)
kurtosis: 0.912725
skewness: -0.730359
Image statistics:
Overall:
min: 17 (0.0666667)
max: 252 (0.988235)
mean: 126.781 (0.497179)
standard deviation: 44.7272 (0.175401)
kurtosis: 0.865417
skewness: -0.0746656
Rendering intent: Perceptual
Gamma: 0.45455
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)
Interlace: None
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Compose: Over
Page geometry: 800x800+0+0
Dispose: Undefined
Iterations: 0
Compression: Zip
Orientation: Undefined
Properties:
date:create: 2014-11-29T11:41:49-06:00
date:modify: 2014-11-29T11:41:49-06:00
png:bKGD : chunk was found (see Background color, above)
png:cHRM : chunk was found (see Chromaticity, above)
png:gAMA : gamma=0.45454544 (See Gamma, above)
png:IHDR.bit_depth : 8
png:IHDR.color_type : 2 (Truecolor)
png:IHDR.interlace_method: 0 (Not interlaced)
png:IHDR.width,height : 800, 800
png:pHYs : x_res=2834, y_res=2834, units=1
png:sRGB : intent=0 (See Rendering intent)
png:text : 6 tEXt/zTXt/iTXt chunks were found
signature: ea07b01b2f85f739959103743e0ef83520e174489b952ffc18c495a049c68581
tiff:document: image.tif
tiff:endian: lsb
tiff:photometric: RGB
tiff:rows-per-strip: 3
Artifacts:
filename: image.png
verbose: true
Tainted: False
Filesize: 946KB
Number pixels: 640K
Pixels per second: 21.33MB
User time: 0.020u
Elapsed time: 0:01.030
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org