Menu

Watermarks using IIIF protocol

Help
2017-12-04
2017-12-05
  • Eoin Kilfeather

    Eoin Kilfeather - 2017-12-04

    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;

    server.modules += ("mod_fastcgi")
    
    fastcgi.server += (
      "/fcgi-bin/iipsrv.fcgi" =>
      ((
    
            "socket" => "/tmp/ipsrv-fastcgi.socket",
    
            "check-local" => "disable",
    
            "min-procs" => "1",
    
            "max-procs" => "8",
    
            "bin-path" => "/usr/local/iipsrv/iipsrv.fcgi",
    
            "bin-environment" => ( "LOGFILE"=>"/tmp/lighttpd-iipsrv.log", "VERBOSITY"=>"1", "MAX_IMAGE_CACHE_SIZE"=>"128", "JPEG_QUALITY"=>"65", "MAX_CVT"=>"1500", "MAX_LAYERS"=>"8", "FILESYSTEM_PREFIX"=>"/data/jpeg2k_cache/", "WATERMARK"=>"/usr/local/iipsrv/nli_logo_watermark_grey_gradient_40.tif", "WATERMARK_PROBABILITY"=>"0.4", "WATERMARK_OPACITY"=>"0.15", "MEMCACHED_SERVERS"=>"172.16.1.133:11211,172.16.1.149:11211,172.16.1.175:11211,172.16.1.176:11211", "MEMCACHED_TIMEOUT"=>"604800" ),
          ))
    )
    
     
  • Ruven

    Ruven - 2017-12-05

    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.

     

Anonymous
Anonymous

Add attachments
Cancel