h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
https://fly.io/docs/app-guides/run-a-global-image-service/
MIT License
5.5k stars 455 forks source link

stripmeta=true results in wrong colors for non-sRGB JPEGs #397

Open lazka opened 2 years ago

lazka commented 2 years ago

When I pass a jpeg to imaginary with a non srgb color profile and also pass stripmeta=true the resulting image doesn't have a color profile and also isn't converted to sRGB, so the image colors are wrong. I would expect it to either copy over the color profile information or convert the image to sRGB.