In the Google App Engine in Python, how do you determine if JPEG uses the CMYK color space and how to convert it to RGB?

The image API in the Google App Engine does not seem to properly handle CMYK JPEG images when applying transforms. On the production server, the resulting image appears blurry, and on the dev server (where GAE uses PIL), the resulting image is darker and less defined.

It seems that the API assumes all JPEG files are RGB.

Is there any way to detect CMYK image in Google App Engine?

Is there a way to convert the image to RGB?

+3
source share
1 answer

JPEG , JIF, , JFIF.

, API JPEG, Adobe CMYK. JPEG, .

hachoir-parser CMYK JPEG . python, App Engine.

API App Engine.

+3

All Articles