I am loading a jpeg from the disk, and I would like to do some RGBA operations on it.
However, since the jpeg is not RGBA, i get an error when I try to use it as such:
thumbnail,err:=jpeg.Decode(imageAsReader) ... return thumbnail.(*image.RGBA)
yeileds the error:
interface conversion: image.Image is *image.YCbCr, not *image.RGBA
Is there an easy way to convert the image to RGBA once I have loaded it in memory? (Other operations are in RGBA later on, so that is the color model I want to use in memory).