Re: "-colorspace RGB" broken
Posted: 2014-05-05T08:49:02-07:00
I'm facing this issue now.
Cause Amazon AMI Linux only recently received an update from
ImageMagick-6.5.4.7-6.12.amzn1.x86_64
to
ImageMagick-6.7.8.9-6.14.amzn1.x86_64
I had a service running there that was resizing images.
I need that service to resize ANY image to JPEG and sRGB colorspace
I have no way of query the image. I can just execute a command like you would do in a batch operation with random images on a folder.
This used to be the command (don't get fooled by the fact that this seems a bash script, I just reconstructed it to reproduce the issue, I only specify the options to the software):
This worked like a charm!
Any image I popped in, PNG, JPEG with colorspace CMYK, GREY or any form of sRGB I obtained an image exactly as the original or only slightly different (for example when the original image was an Adobe sRGB)
After the update with the same command when the original is CMYK or GREY it works. When is an sRGB I obtain an image lot darker.
I cant use the suggested workaround:
Cause when the original image is CMYK I can't -set colorspace sRGB, makes no sense.
So, this is a bug to any extent. And it's made worse by the fact that you broken backward compatibility, it doesn't matter if the previous nomenclature was wrong, you did a change that is not backward compatible without anyway to obtain the previous result.
I really love ImageMagick and thank you all that worked on it. But you have to admit you messed up pretty bad here.
Please help me find a workaround for this issue.
Regards,
Daniele
Cause Amazon AMI Linux only recently received an update from
ImageMagick-6.5.4.7-6.12.amzn1.x86_64
to
ImageMagick-6.7.8.9-6.14.amzn1.x86_64
I had a service running there that was resizing images.
I need that service to resize ANY image to JPEG and sRGB colorspace
I have no way of query the image. I can just execute a command like you would do in a batch operation with random images on a folder.
This used to be the command (don't get fooled by the fact that this seems a bash script, I just reconstructed it to reproduce the issue, I only specify the options to the software):
Code: Select all
convert "$IN" -quality 90 -intent Perceptual -resize '5120x3200>' -filter Catrom -colorspace RGB -strip "$OUT"
Any image I popped in, PNG, JPEG with colorspace CMYK, GREY or any form of sRGB I obtained an image exactly as the original or only slightly different (for example when the original image was an Adobe sRGB)
After the update with the same command when the original is CMYK or GREY it works. When is an sRGB I obtain an image lot darker.
I cant use the suggested workaround:
Code: Select all
convert "$IN" -set colorspace sRGB -colorspace RGB -quality 90 -intent Perceptual -resize '5120x3200>' -filter Catrom -colorspace sRGB -set colorspace RGB -strip "$OUT"
Cause when the original image is CMYK I can't -set colorspace sRGB, makes no sense.
So, this is a bug to any extent. And it's made worse by the fact that you broken backward compatibility, it doesn't matter if the previous nomenclature was wrong, you did a change that is not backward compatible without anyway to obtain the previous result.
I really love ImageMagick and thank you all that worked on it. But you have to admit you messed up pretty bad here.
Please help me find a workaround for this issue.
Regards,
Daniele