Add watermark to images #2057
Answered
by
tidyui
kimlundjohansen
asked this question in
Q&A
-
Is it possible through an extension or hook to add a watermark to a picture uploaded in the media section of the manager? |
Beta Was this translation helpful? Give feedback.
Answered by
tidyui
Apr 5, 2024
Replies: 1 comment 1 reply
-
Hi there! You should be able to use the following hook to process any media after it has been saved. App.Hooks.Media.RegisterOnAfterSave((media) =>
{
// Add custom code to process the binary file if it has been updated
}); You find documentation on all of the available hooks here: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kimlundjohansen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there! You should be able to use the following hook to process any media after it has been saved.
You find documentation on all of the available hooks here:
https://piranhacms.org/docs/master/application/hooks