nanostudio-org / nanogallery2

a modern photo / video gallery and lightbox [JS library]
https://nanogallery2.nanostudio.org
762 stars 112 forks source link

Watermark images in Lightbox #271

Open Gae84 opened 4 years ago

Gae84 commented 4 years ago

Good evening everyone. I have a question, it's possible to add a watermark (text or image) to any image displayed in lightbox mode? Thanks for your help.

Kris-B commented 4 years ago

Do you want to add a watermark directly to the image, or just as an overlay on top of it in the lightbox ?

Gae84 commented 4 years ago

Hi Kris, i developed a solution for this new feature but i have an issue because the overlay watermark exits the surface of the current image when the photos in the gallery have different sizes. I need to obtain the current image in order to get height and width. When use $("img.nGY2ViewerMedia").outerHeight() i obtain the next or the previous image preloaded. Is there any way to find the displayed image? It's possible to disable images's preloading? Thanks G

ajmeese7 commented 1 year ago

Related to #298.