Implement option to switch set of formats on transparency #163
Labels
duplicate
This issue or pull request already exists
enhancement
New feature or request
feature: `formats` option
I want to build an image shortcode that does not output jpgs when the input image is/(might be) using transparency and instead use pngs.
Since the documentation points out that relying on the file extension isn't correct, I'd love to use the metadata sharp exposes to make this decision.
Right now I use it something like this:
I don't know what the most elegant way of doing this would be, but I think such a feature would help more people than jsut me.
The text was updated successfully, but these errors were encountered: