Comments (1)
Use case?
Some thoughts in the meantime:
-
The libraries with which Loris is built could easily do a transparent overlay on an image.
-
The IIIF image API does not address this feature (should it? probably--almost definitely--not).
-
The logic for when to apply a watermark would have to be entirely server-side, because if the URI for the derivative was, say:
http://{server}/loris/{id}/full/full/0/native.jpg?watermark=true
then it wouldn't be tough to figure out what
http://{server}/loris/{id}/full/full/0/native.jpg?watermark=false
is likely to do. Sure there could be something more opaque baked into the identifier, but that would be ugly.
-
Assuming whether or not the image needs to be watermarked or not (and how) could be determined as part of the resolution step (i.e. where we take the ID in the URI and turn it into a file system path...by default this is just string concatenation but it could be made more complex to query a repository system), one approach would be to add
watermark_id
or something like that as an optional parameter that the resolver can return, and when it's present, get that overlay (from the app? from the repository?) and revise the transformation scenario to take an optional path to the overlay to apply. -
Should the image have the same URI with and without watermarks? This would make caching more difficult, especially if you wanted to allow some users to see the images without the watermark, say, if they were within an IP range. Put another way, is the image, when viewed through the server, always or conditionally watermarked?
So, the devil is in the details...let me know more.
Amendment
I'd forgotten about the Djatoka watermark plugin. Is this anything like what you're after? We never used it here, but it looks like it makes the assumption that all (or none) of the images from the server will be watermarked; I'd want to be more flexible.
from loris.
Related Issues (20)
- Normalize content-type before extention computation in SimpleHTTPResolver
- update kakadu libraries HOT 1
- Requesting pngs as gray or monochrome HOT 1
- loris folder not being created with ubuntu 20.04 HOT 12
- new release HOT 2
- possibility for wrong file in Loris cache using customized HTTP resolver HOT 4
- @id starting with https://(null)/ HOT 1
- Wrong error returned (404 instead of 400) for special characters HOT 2
- Give a proper 'library not found' error instead of timing out
- WSGI error in Ubuntu 20.04 installation HOT 4
- Doc should mention libapache2-mod-wsgi-py3 dependency HOT 1
- SimpleHTTPResolver to public S3 bucket HOT 13
- loris behind proxy HOT 2
- Loris needs new maintainers
- Loris configuration HOT 4
- Bad URL request
- How to provide a custom `quality`
- Loris Server error
- Add support for versioned content in VERSIONED S3 bucket
- Both demos not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from loris.