Your configuration looks fine and the watermarking should appear regardless of whether you are using IIIF or the IIP API. I see you are using several memcached servers, which may be caching un-watermarked image tiles, so try disactivating memcached and see if that helps.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for that information. I did as suggested and disabled memcaching and restarted the servers and cleared browser caches just for good measure but the watermark does not appear to be set when using the IIF protocol.
Looking at the XHR requests from IIPMooviewer I get;
Hi,
I'm experimenting with the IIIF protocol using IIPserver 1.0.
Everything is working nicely when I view images using IIPMooviewer using the FIF protocol and I see the expected watermarks.
http://localhost/cgi-bin/iipsrv.fcgi?FIF=000540000/000538174/vtls000538174_001.jp2&SDS=0,90&WID=50&QLT=99&CVT=jpeg
However when using Universal Viewer and the IIIF protocol the image loads into the viewer but the watermarks are not there.
http://172.16.1.149/fcgi-bin/iipsrv.fcgi?IIIF=000330000/000324414/vtls000324414_001.jp2/9216,3072,477,1024/120,/0/default.jpg
Is this a limitation of the implementation or is there something else I need to configure?
Thanks in advance,
Eoin.
This is my server conf;
Your configuration looks fine and the watermarking should appear regardless of whether you are using IIIF or the IIP API. I see you are using several memcached servers, which may be caching un-watermarked image tiles, so try disactivating memcached and see if that helps.
Hi Ruven,
Thanks for that information. I did as suggested and disabled memcaching and restarted the servers and cleared browser caches just for good measure but the watermark does not appear to be set when using the IIF protocol.
Looking at the XHR requests from IIPMooviewer I get;
1.http://localhost/cgi-bin/iipsrv.fcgi?FIF=000520000/000511728/vtls000511728_001.jp2&obj=IIP,1.0&obj=Max-size&obj=Tile-size&obj=Resolution-number [which returns IIP Metadata ]
This is followed by 4 tile requests;
http://localhost/cgi-bin/iipsrv.fcgi?FIF=000520000/000511728/vtls000511728_001.jp2&CNT=1&SDS=0,90&JTL=1,3 .. 1,1 .. 1,2 .. 1,0 [last one attached]
One of which is watermarked (which is about what I think I should expect for the WATERMARK_PROBABILITY setting).
Accessing the same image resource through Universal Viewer I get
http://fullcatalogue.nli.ie/cgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/info.json [which returns the IIIF Information]
This is followed by 1 full view image at 252 width request.
http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/full/252,/0/default.jpg
Followed by sixteen 256x256 tile requests;
http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/0,0,2048,2048/256,/0/default.jpg
http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/2048,0,1972,2048/247,/0/default.jpg
http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/0,2048,2048,646/256,/0/default.jpg
http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=000520000/000511728/vtls000511728_001.jp2/2048,2048,1972,646/247,/0/default.jpg [attached]
... and so on with 12 requests for the next scale factor.
However none of these image tiles are watermarked.
I have attached the equivant tiles from each request to illustrate.
Finally IIPImage reports
Is there anything I might be missing?
Thanks again.
Eoin.