Developer forum

Forum » CMS - Standard features » Inverted image colors with getimage.ashx

Inverted image colors with getimage.ashx

Jeppe Jakobsen
Reply

Hi Dynamicweb

I have an odd issue with the GetImage.ashx feature. Some images on our site gets color-inverted after being downscaled. Here is an example:

http://bse-test.bibsent.no/Files/ProductImages/82433.jpg

http://bse-test.bibsent.no/admin/public/getimage.ashx?Image=/Files/ProductImages/82433.jpg&height=800&width=400&crop=5

The used parameters works fine most of the time, but occasionally we have these odd ones. I tried converting the picture to png, which solved the problem, but since our customer supplies the images in this format, a total conversion is not really a good solution. A pointer to why this is happening would be much appreciated, so i can prevent any new cases.

Best regards, Jeppe.


Replies

 
Nicolai Pedersen
Reply

Hi Jeppe

My guess is that it is probably created as a TIFF in CMYK color format using Adobe something. Then saved to jpeg in CMYK, and when resized, this happens.

So saving the jpeg as RGB should fix the issue.

BR Nicolai

 

You must be logged in to post in the forum