mirador icon indicating copy to clipboard operation
mirador copied to clipboard

How to add watermark image on IIIF image in mirador?

Open ChayaBer1 opened this issue 2 years ago • 5 comments

Is there a way of adding watermark image on some specific images according to a condition?

ChayaBer1 avatar May 23 '22 10:05 ChayaBer1

Hello @ChayaBer1 I'm interested too. Have you found any solution?

arthytrip avatar Sep 21 '22 16:09 arthytrip

I don't think this makes much sense in a viewer, the client can always just request the image from the IIIF Image API and get it without the watermark. If you really have to do watermarking, the image server is the obvious place to do it.

jbaiter avatar Sep 22 '22 11:09 jbaiter

+1. For instance Cantaloupe Image Server supports that: https://cantaloupe-project.github.io/manual/5.0/overlays.html

regisrob avatar Sep 22 '22 13:09 regisrob

Yes I agree. In fact I am using Cantaloupe 5.0 as image server, but I have to implement a dynamic watermark, a text based on the URL used and/or on other "context key" values. Unfortunately, it seems impossible to detect most of the "context keys" from Cantalupe's delegates.rb script. I posted a couple of requests on GitHub and Google Groups but no one replied (see here and here). Imho, the problem is that Cantaloupe is not called directly but through Mirador, sending portions of the requested images to it, so Cantaloupe's "contextual keys" are almost all empty. So, my question here, as a possible alternative. Thanks in advance for any further suggestions.

arthytrip avatar Sep 22 '22 13:09 arthytrip

Forget about it. I solved the problem I had with Cantaloupe, it was simply due to the excessive length of the text strings never displaying on too small images used as an example.

arthytrip avatar Sep 29 '22 10:09 arthytrip