• Resolved JayFry

    (@jayfry)


    Hi!

    Thank you for the great plugin — I really appreciate it!

    I’d like to add watermarks to the converted WebP images. Could you help me with the best way to do this using your code? I’d prefer not to modify the plugin directly to avoid breaking anything.

    Ideally, I’m looking for a safe method, such as a hook I can attach to — something that gives me access to the image just before it gets converted to WebP.

    My goal is to upload clean (non-watermarked) images to the server and apply watermarks only during the WebP conversion. That way, I’ll always have the original, unwatermarked images stored on the server.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @jayfry,

    Thank you for your message.

    We do not offer such a solution officially, but you can try using the webpc_gd_before_saving filter (you can find the usage of this filter here) or the webpc_imagick_before_saving filter (you can find the usage of this filter here).

    We don’t have documentation for these filters, but I think you can handle it.

    Best,
    Mateusz

    Thread Starter JayFry

    (@jayfry)

    Thanks a lot for the hint!

    • This reply was modified 11 months ago by JayFry.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Watermark hook’ is closed to new replies.