Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rumo0815

    (@rumo0815)

    Hi nK,

    thanks, I really appreciate that (and I’m sure others do so as well). It is exactly what I was looking for!

    Looking forward to v2 and I hope it will already be included there.

    Best, Johannes

    Thread Starter rumo0815

    (@rumo0815)

    Hi nK.,

    thanks for your response. Unfortunately this doesn’t answer my question, maybe I wasn’t clear enough. Was I meant was: Can I use your Photoswipe version outside of Visual Portfolio itself (on sites where is no portfolio, neither post-based nor image based)? Like a random single page, a blog entry, the disclamer page.

    Is there any way to register and run your Photoswipe on these pages?

    Best,
    Johannes

    Thread Starter rumo0815

    (@rumo0815)

    Here is the code related to my last question.

    Visual Portfolio plugin (smartphone sized viewport, loading the 1024px version):

    
     <img class="pswp__img pswp__img--placeholder" src="URL/121006_IMG9436web-1024x681.jpg" style="width: 375px; height: 249px; display: none;">
    <img class="pswp__img" src="URL/121006_IMG9436web-1024x681.jpg" style="display: block; width: 375px; height: 249px;">

    Visual Portfolio plugin (desktop view, loading the fullsized version):

    <img class="pswp__img pswp__img--placeholder" src="URL/121006_IMG9436web-1024x681.jpg" style="width: 1151px; height: 765px; display: none;">
    <img class="pswp__img" src="URL/121006_IMG9436web.jpg" style="width: 1151px; height: 765px;">

    Your plugin in any viewport (always loading the fullsized version):

    <img class="pswp__img pswp__img--placeholder" src="URL/121006_IMG9436web.jpg" style="width: 375px; height: 249px; display: none;">
    <img class="pswp__img" alt="
        " src="URL/121006_IMG9436web.jpg" style="display: block; width: 375px; height: 249px;">

    I see an ongoing discussion in your Github. Am I right this is related to this?

    Thread Starter rumo0815

    (@rumo0815)

    Arno, you’re a blast! This is way beyond my expectations, thank you very much.

    Yes, I came across the documentation of Visual Portfolio, but I didn’t see it as a solution at first. Anyway, the code snippets you provided work perfectly. I disabled Photoswipe in Visual Portfolio and wrote a feature request to its developers, as I think the problem is more on their side. I have left your plugin untouched.

    The only thing is: Your plugin is now loading only the full sized images, not the scaled ones defined by the srcset and chosen by the viewport. Did I miss something here?

    Thanks again for your help, I really appreciate it!

    • This reply was modified 6 years ago by rumo0815. Reason: Question added (srcset)
Viewing 4 replies - 1 through 4 (of 4 total)