Skip to content

Add watermark to images #2057

Answered by tidyui
kimlundjohansen asked this question in Q&A
Discussion options

You must be logged in to vote

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:

https://piranhacms.org/docs/master/application/hooks

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@kimlundjohansen
Comment options

Answer selected by kimlundjohansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants