Adding watermark over resized images

Hi there,

we use CF resize image feature (cdn-cgi), so src for our images look like below

/cdn-cgi/image/width=400,height=400/imagename.jpg

Now we want to add watermark over such images. I followed instruction below

However it seems it does not work when image is resized within /cdn-cgi/ approach.
Things work as expected if I resize images + applying watermark in the same worker.

My question

Is it be possible to apply watermark using worker on already resized image (/cdn-cgi/*…)?

Thanks.

My understanding would be your Worker never runs when you use the built-in resize method. If you want to do both you will have to resize from your Worker where you also apply the watermark.