Some images are chaning color: phpthumbof

Hi all

I have been facing the image inversion problem for some of the images. Below is one of the examples

Original image: (2.35MB)

The image on the left is original and on the right is the output on the webpage and media browser.

This is happening for some of the images and not all. Beow is the code for the same
img src="[[+LibraryImageSmall]]:phpthumbof=`w=120&h=80&bg=FFFFFF&ra=0&aeo=1" border=“0”

MODX Revolution 2.7.0-pl


Maybe the original image uses the CMYK colorspace.