How to use autojpg() filter on a cloudfront request ? #479
|
I basically want to add a filter:autojpg() to this and I have tried various combinations, but to no avail. The PNG never converts to JPG. Any help would be appreciated. Thank you. |
Answered by
dougtoppin
May 8, 2023
Replies: 3 comments
|
Can you try using toFormat in your request to see if that does what you need? I also should include that many of the sharp library functions can be used in edits. These are not individually documented in the Implementation Guide so some experimentation may be necessary to confirm the expected behavior. For example, the toFormat usage can be found at https://sharp.pixelplumbing.com/api-output#toformat |
0 replies
Answer selected by
dougtoppin
|
Converting this to a Q&A Discussion |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@aligajani
Can you try using toFormat in your request to see if that does what you need?
I also should include that many of the sharp library functions can be used in edits.
These are not individually documented in the Implementation Guide so some experimentation may be necessary to confirm the expected behavior.
For example, the toFormat usage can be found at https://sharp.pixelplumbing.com/api-output#toformat