Skip to content

Watermark not apply in SIPI docker version #447

@theVannu

Description

@theVannu

Hello there!
I am using latest docker version of SIPI and I want add a watermark to my images but have following error:

Sipi: ERROR IN TIFF! Module: TIFFOpen
2024-06-24T13:36:44.597759186Z Sipi: watermark.tif: No such file or directory
2024-06-24T13:36:44.597851083Z terminate called after throwing an instance of 'Sipi::SipiImageError'
2024-06-24T13:36:44.597868936Z   what():  std::exception

I've created an image with suffix "_watermarked" into images folder so sipi.init.lua execute following piece of code:

elseif string.find(identifier, "watermarked") then
        local filepath = config.imgroot .. '/' .. identifier
        local settings_for_sipi = {}
        settings_for_sipi['type'] = "restrict"
        settings_for_sipi['watermark'] = config.imgroot .. '/' .. "watermark.tif"
        return settings_for_sipi, filepath

Error message seems to be clear: "watermark.tif file not present into images folder" but that's wrong, I have open a shell using docker exec and check file presence.
I check that config.imgroot is equal to "./images" too.

What I am doing wrong?
Thank you all for help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions