• Hello!

    I use PhotoSwipe 4 (to be able to set mobile view as well).

    My acute issue:

    I have an image with 1920 width (height 4800) and would like to have this size displayed when clicking on another image. This works, but if I click on the magnifying glass, the image is displayed at 100% and therefore unfavorable on smaller displays in this particular case. Since the “magnifying glass” has this as an idea, the implementation is therefore also correct and I ” misuse” therefore from my point of view the magnifying glass for less ??

    However: I would like to display “still” only on 100% of the display width, if + is used.

    So on a 1200er display then 1200er width would be scaled.

    I tried to solve this with CSS, but it doesn’t work.

    Alternatively working with an image-size-plugin would be technically probably the better way. However, because the image is very small as a webp, I would currently want to work around it.

    Thanks for any advice

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Arno Welzel

    (@awelzel)

    According to the documentation at https://photoswipe.com/adjusting-zoom-level/ it should be possible to open an image in a way to fill the screen always first. I’ll see what I can do – maybe I’ll add a backend option for PhotoSwipe 5 to control this.

    Edit: sorry, for PhotoSwipe 4 you have to live how it is. PhotoSwipe 4 is only kept in the plugin for backwards compability, but no additional features will be implemented for it. So the initial zoom option – if implemented – will only be available for PhotoSwipe 5.

    • This reply was modified 1 year, 9 months ago by Arno Welzel.
    Thread Starter WP-Henne

    (@wp-henne)

    Hello Arno,

    Thank you for your explanations and your advice.

    I have just tested with version 5 how it behaves.

    In the desktop view, on a 1200 display, only a barely 600px wide view is generated at + No idea where the parameter comes from (can’t read that in the developer options).

    In the mobile view, it stoically uses an 800px width at +, which is not suitable on smartphone portrait and doesn’t fill that width on a tablet in landscape mode.

    Am happy to support /diagnose / beta!

    Thanks a lot!

    Plugin Author Arno Welzel

    (@awelzel)

    Without a link to an example it’s hard to help with this.

    If you want to check the default behaviour of PhotoSwipe 5 without any CSS customization, see the examples here:

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-5/

    https://wordpress-demo.arnowelzel.de/lightbox-with-photoswipe-5-overlay-caption/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘+ Enlarge only to display width and not to 1:1’ is closed to new replies.