IM (using 6.6.9-7) seems to have some major problems with resizing or any sort of color quantization when using certain colorspaces, especially the Luma-based ones. Here's the code used:
Code: Select all
convert -list colorspace | while read CS; do echo $CS && convert -monitor Lenna.png -depth 32 -colorspace $CS -resize 239x227! label:$CS -gravity Center -append -depth 8 -colorspace RGB $CS.png; done
The effect is some sharp discoloration, using primary colors to fill in certain colors. It's possible that these "certain colors" are outside of the gamut of sRGB, but it shouldn't be replacing them with obvious 255-type colors, and instead find the closest approx. color. In two cases, the colorspace simply tinted the entire image for no reason. (Not just single-channel greyscale colorspaces, but ones that are capable of color pictures.)
The affected colorspaces are: HSB, HWB, Lab (primary color replacements), HSL, YPbPr (tinting). The Lab one is especially problematic because it SHOULD be used for color quantization, but is now crippled with this problem.
Here's an example of the problem.
EDIT: YCC seems to also have some gamma problems. It's slightly darker than the rest.