LouisBarranqueiro / hexo-theme-tranquilpeak

:lipstick: A gorgeous responsive theme for Hexo blog framework
https://louisbarranqueiro.github.io/hexo-theme-tranquilpeak/
GNU General Public License v3.0
1.86k stars 484 forks source link

Gallery doesn't work if it's Google Photos URL #51

Closed akiwarheit closed 9 years ago

akiwarheit commented 9 years ago

Recently made a move to migrate from imgur to google photos

Apparently, gallery stops working with google photo URLs

http://hashtaghashtag.github.io/blog/2015/07/12/Shoot-Edit-Repeat/ (Google Photos URL) http://hashtaghashtag.github.io/blog/2015/06/14/Let-s-start-an-adventure/ (Imgur)

Any advise? (aside from going back to imgur)

LouisBarranqueiro commented 9 years ago
  1. I love your blog. :)
  2. About this problem, look url form imgur : http://i.imgur.com/o9g09kT.jpg and from google : https://lh3.googleusercontent.com/0GLRzu0EY1W8xtUCfzmGCjgOS-jB1fLSSvzMzbUid7s=w1024-h686-no. There is no extension at the end of the URL provide by Google. Fancybox maybe need an URL ended by an image extension (jpg, png, etcc ..). I will look at Fancybox code to verify this hypothesis
akiwarheit commented 9 years ago
  1. Told my girlfriend; means a lot coming from the creator of the theme we're using :+1:
  2. I thought so; if it's on fancybox then you may close this. Thanks.
LouisBarranqueiro commented 9 years ago

Yes, my hypothesis is good! :) at the end of you url place #.jpg what ever the real file extension and it will work :)
(e.g : https://lh3.googleusercontent.com/0GLRzu0EY1W8xtUCfzmGCjgOS-jB1fLSSvzMzbUid7s=w1024-h686-no#.jpg )

LouisBarranqueiro commented 9 years ago

I will write this tip in user documentation. Thanks you for feedback man :) don't close your issue until the next version of tranquilpeak is released with the user documentation updated, please.

akiwarheit commented 9 years ago

It works! Thanks! (noted on not closing until next release)

LouisBarranqueiro commented 9 years ago

Tranquilpeak 1.2.0 fix this bug and no more need to add #.jpg at the end of url :)