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.
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@aligajani We will get back to you on this |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Converting this to a Q&A Discussion |
Beta Was this translation helpful? Give feedback.
@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