Event before asset is uploaded #8018
Answered
by
ryanmitchell
BrandonOldenhof
asked this question in
Q&A
-
Hello! I'm looking for a good way to optimize assets using imagick or gd; I want to convert jpg and png images to webp to save on disk usage and page loading speed. Is there such an event, or something similar that will allow me to do the same thing? |
Beta Was this translation helpful? Give feedback.
Answered by
ryanmitchell
May 2, 2023
Replies: 1 comment 1 reply
-
You can process source file uploads: https://statamic.dev/image-manipulation#process-source-images - maybe this is close enough to what you are looking for? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BrandonOldenhof
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can process source file uploads: https://statamic.dev/image-manipulation#process-source-images - maybe this is close enough to what you are looking for?