Url local image for fancygallery

No, don't work. any model of google drive link
https://drive.google.com/uc?export=view&id=ID
or
https://drive.google.com/uc?export=download&id=ID
or
https://drive.google.com/file/d/ID/view?usp=drive_link

why? :thinking:

Here is probably why:

2 Likes

Do you suggest a solution ? (other than downloading the file.)

As suggested in the link, use a different hosting service, I am.

2 Likes

But, Google Drive link, working on picture component. why? :thinking:

fancy gallery extension is managed via javascript, and as you read in the article posted by @TIMAI2 the image is loaded as if it were an Iframe and therefore not recognized by the img tag as a correct element

1 Like

I found a solution.
Use a thumbnail to load the image into fancyGallery from the google drive link.
example:
https://drive.google.com/thumbnail?id= +id of your image link.
You can also specify the size of the thumbnail:
https://drive.google.com/thumbnail?id= +id of your image link+&sz=w640.
For me this link works fine:
https://drive.google.com/thumbnail?id=1DlTneR_41y-MNEuzUuqqaR5H0pXy0Sb0&sz=w640

Source:
https://codepen.io/raulpenate/pen/wvOozzw

2 Likes

Yes, It's working. thanks.

May be better to use a link like this, these days:

https://lh3.googleusercontent.com/d/1DlTneR_41y-MNEuzUuqqaR5H0pXy0Sb0=w256

You can also use an s

https://lh3.googleusercontent.com/d/1DlTneR_41y-MNEuzUuqqaR5H0pXy0Sb0=s256

1 Like