• Resolved reinisturn

    (@reinisturn)


    Hello,
    Details:

    • WP 6.1.1
    • Lightbox with PhotoSwipe 5.0.20

    Case:

    We are using default WP theme “2023”, with child theme with some updates. All stuff are with Guttenberg blocks and WP templates. We have added gallery, for setting have “Link to” is choosen “Media file” and it is working fine, open image in modal, problem is with vertical image size, it is streched. There are no any css or js overrides for this plugin.

    Here is an image below where can see that there are no any overrides, just seems that proportions of image are wrong.

    Could someone help with this issue?

    Regards, Reinis

    • This topic was modified 1 year, 9 months ago by reinisturn.

    The page I need help with: [log in to see the link]

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

    (@awelzel)

    Lightbox with PhotoSwipe reads the image headers to find out the width and height. The image in question was detected to be 3468 pixel wide and 2432 pixels high as you can see in the HTML source:

    <a href="..."
    data-lbwps-width="3648"
    data-lbwps-height="2432"
    data-lbwps-srcsmall="...">

    Obviously this is wrong – but why?

    Technically the image is a wide image rotated by 90 degrees – most likely because it was taken with a camera rotated by 90 degrees and the camera decided to keep the image as it is and add the rotation as additional information to the EXIF data (also see https://jdhao.github.io/2019/07/31/image_rotation_exif_info/ about this). However this is not supported yet by my plugin. It reads EXIF data, but only for displaying it as caption, if the respective option is enabled in the backend.

    If you want to, you can contact me via e-mail (see my contact address at https://arnowelzel.de/en/about-me). If you can send me the original file (I can provice a secure Nextcloud server for uploads) I can check how to detect the rotation information from the EXIF data properly to replace width/height if neccessary. Unfortunately I don’t have any image to test that and can not easily provide a fix without a test file.

    Another option would be to save the image with a image processing program and make sure it is saved as portrait image and not as wide image with rotation in the EXIF data only.

    Plugin Author Arno Welzel

    (@awelzel)

    I managed to save the original image from your website and can reproduce this issue in my development setup. I’ll provide a fix as soon as possible.

    Thread Starter reinisturn

    (@reinisturn)

    BIG thanks, I will wait for result!

    Plugin Author Arno Welzel

    (@awelzel)

    Version 5.0.21 should fix this.

    Thread Starter reinisturn

    (@reinisturn)

    Ooo yes, thanks! Amaizing, you were very fast! Respect!!
    Thank you, again! ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Vertical image width’ is closed to new replies.