I want to be able to generate a different image (with watermark) when the user save the image.
I know that :
- Broswer send text/html when it’s direct image access and image/jpeg (image content-type) when it’s included in a src=””
So if the browser query the server from a src=””, it send the good content-type. If the broswer go on the image url it does send text/html,application/html+xml, etc…
Anyone know how to make the watermark happen if the user do the command “Save as” ?
Thanks
The most elegant solution gave above was to create a box over the image who’s less higher (and will hide the watermark) who’s has been generated before (when uploading the picture let’s say).
This way the CSS hide the white box below the picture and when someone use “Save as” the box is there. No ressource is used on the server.
Here’s the solution based on the browser header I developped. Do not work with “Save as” but work for direct access picture and src=””