Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | Renamed-zoomed-normal-and-preview-thumbnail-image-styles.patch | 3.11 KB | kroimon |
#2 | Provide-big-image-for-lightbox-and-fullscreen-theme.patch | 4.09 KB | kroimon |
big_image.patch | 2.8 KB | kroimon |
Comments
Comment #1
miro_dietikerReferring 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?
Comment #2
kroimon CreditAttribution: kroimon commentedI 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...
Comment #3
kroimon CreditAttribution: kroimon commentedI have another patch I want to add here because it is based on the patch above.
It changes the following two things:
Comment #4
miro_dietikerSupport for this big image was also merged with
#1185248: Better options page and per-page options