According to the Using image data documentation of Galleria, it is possible to provide a URL to a third zoom level to be displayed in the fullscreen theme and in the lightbox like so:
<a href=”image.jpg” rel=”big.jpg”><img src=”thumb.jpg”></a>

I added support for that and the possibility to select which image style should be used for the big image.

If necessary, one could add another checkbox to the display settings to disable this feature, but I don't think it hurts to have a reference to the original image even if it's not used.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker’s picture

Referring to the original seems not a problem initially.

With cdn support we have in drupal 7 now the possibility to adjust delivery URLs completely.
However sometimes it might be completely unwanted to refer to the original, but we want to deliver imagecache variants only.

Currently overriding the theme and e.g. customizing this functionality also doesn't seem to be too simple.

Any further inputs about a definitive version to integrate?

kroimon’s picture

I reviewed it again to not print the big URL when the big image style is set to the same style as for the normal images.
If anyone don't ever want to give away the original image, just set the style to the same style as the normal image.

I think we can commit it like that...

kroimon’s picture

I have another patch I want to add here because it is based on the patch above.

It changes the following two things:

  1. Renamed "Zoomed" to "Normal" and "Preview" to "Thumbnail" image styles to be consistent with Galleria internals and to make the difference between "Big" and "Normal" images more clear.
  2. Make the "Original image" text in galleria_field_formatter_settings_summary() translatable.
miro_dietiker’s picture

Status: Needs review » Fixed

Support for this big image was also merged with
#1185248: Better options page and per-page options

Status: Fixed » Closed (fixed)

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