Using Python PIL, I\'m trying to adjust the hue of a given image.
I\'m not very comfortable with the jargon of graphics, so what I mean by “adjusting hue” is doing t
Good question. PIL does not convert to to a HSV or HSL colorspace, but this is the conversion you need to do in order to alter the hue without any changes to the lightness and saturation of the image.
What you need to do is convert to HSV, then increment all the H values by some degree, then convert back to RGB.
Half the work is done for you in an answer (by me) some time ago. It employs another python module called NumPy and converts RGB colorspace to HSV. It would not be too much trouble to write the reverse conversion.