It is likely that doing resize in another linear colorspace that separates intensity from the color components (such as LAB now that it is fixed to allow this) will ensure you do not get color drift along edges.NicolasRobidoux wrote:I think that my worries about high contrast leading to colour drift were just that?
P.S. No, they are not: It depends on the sharpness of the input image.
Code: Select all
convert rose: -colorspace RGB -filter Lanczos -distort resize 600x -colorspace sRGB rose_RGB.png convert rose: -colorspace LAB -filter Lanczos -distort resize 600x -colorspace sRGB rose_LAB.png
The RGB version has extreme clipping of the ringing.
But the LAB version does not as the intensity difference between white and red is only 1/3 (roughly) as great as between the two colors in the red channel in RGB!
This is probably a much better overall solution that sigmoidal to prevent ring-clipping.
See IM Examples... (should be up by now)
Resizing in LAB colorspace