Hey,

is it possible to integration image styles in the expand/open image-mode? Colorbox does it, so you can use e.g. a drupal-based watermark in original image to protect your medias from copying.

Greetz

Comments

rjacobs’s picture

Hi,

There is an option in the "Advanced" section of the gallery-specific configuration called "LinkURL Source" which can be used to address this. The LinkURL is what the Juicebox library uses when responding to the "Open Image" button, etc. Here you can tell Juicebox to set the LinkURL to the same styled (including watermarks, etc.) source as what is used in the actual gallery, as opposed to the full/raw unstyled image source.

The other alternative is to simply disable the "Open Image" button altogether, though this would not remove the linkURL to the full unstyled source from the gallery XML (so in theory a savvy user could still access it by looking at the XML).

I suppose that no matter what you do there is always a risk that someone can get to the master copy that you uploaded online. If they know the URL of the derivative, and know anything about Drupal, they could probably guess the URL to the unstyled sources. That is of course unless the source upload directories were directly secured somehow (which is a concept well beyond the scope of this module). Without additional measures beyond the gallery itself I suppose any steps you take are just deterrents to opportunistic copiers (which as still good things to address).

djzwerg’s picture

Status: Active » Closed (fixed)

There is an option in the "Advanced" section of the gallery-specific configuration called "LinkURL Source" which can be used to address this. The LinkURL is what the Juicebox library uses when responding to the "Open Image" button, etc. Here you can tell Juicebox to set the LinkURL to the same styled (including watermarks, etc.) source as what is used in the actual gallery, as opposed to the full/raw unstyled image source.

Thanks for this hint! I didn't see that before.

If they know the URL of the derivative, and know anything about Drupal, they could probably guess the URL to the unstyled sources.

That's right. But e.g. search enginges show the pictures automatically by the embedded URL, so that should be the way to protect that a little bit.

rjacobs’s picture

Title: Integration of image styles » Integration of image styles to ensure Open Image button does not reveal original unstyles image sources
Category: Feature request » Support request
Status: Closed (fixed) » Fixed

Sounds good.

I tweaked the title so that others with the same question may more easily find this and adjusted some status and category info for housekeeping.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.