Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always add a background color for PNG > JPEG #96

Closed
jacobsvante opened this issue Apr 8, 2012 · 1 comment
Closed

Always add a background color for PNG > JPEG #96

jacobsvante opened this issue Apr 8, 2012 · 1 comment

Comments

@jacobsvante
Copy link

Converting a transparent PNG to JPEG with sorl should reasonably create an image with simple background color put "underneath" the image (reasonably defaulting to white as it's the most common background color on the web). However I get results similar to what is described in this post both with pgmagick and PIL set as engines.

So simply put: sorl should detect if the original image has an alpha channel that is to be converted to a non-alpha format, and if true, put a simple color layer underneath the image before creating the thumbnail.

@mariocesar
Copy link
Collaborator

This is fixed with the preserve file format Setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants