• Hello!

    If I set thumbnail size e.g. 600×9999 px, don’t crop and set a gallery template (e.g. gallery-caption.php or own template), the images will be drawn. The image height value will be 9999px and this is the problem, i.e. the $image->size. If I remove this from template, no problem, but I would like a correct height value, because it is important (SEO).

    NextGen Gallery version: 2.0.66.27
    Wordpress version: 3.9.2

    Thanks!

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @udvi86 – Aside from the image dimensions being very large (9999px height?!) for thumbnails which may cause a slower load speed, I am not understanding how the actual image sizes would affect SEO … and if it’s a case of the custom template being an issue you are more than welcome to write one that better conforms to the ideals you are trying to meet.

    – Cais.

    Thread Starter UdVi86

    (@udvi86)

    Sorry, you don’t understand. Images width are fix (600px), but height aren’t fix (so I set 9999px). E.g. the one image is 355px, the other is 400px.

    When I don’t set anything on Gallery Settings > NextGen Thumbnails > Templates, all is well. Image get correct “width” and “height” attributes.

    But when I set gallery.php or own custom template, the value of image “height” attribute will be 9999. The image will be stretched.

    I solved the problem temporarily, so that $image->size has been deleted from the gallery.php. But if the images are given width and height attributes, the page will load faster. Thus, the SEO will be better.

    I attached some photos.

    I hope you understand.

    Thanks!

    Udvi

    Plugin Contributor photocrati

    (@photocrati)

    @udvi86 – If you set a specific height then browsers will use that specific height to display the images.

    The settings you are using are meant as maximums, but not if you are using a template … in those cases those settings will not be honored.

    If I use the same settings you are showing in your screen captures I am not having issues with the displayed images being stretched. Have you looked at your theme to see if it is adding any CSS that may be affecting images in general?

    – Cais.

    Thread Starter UdVi86

    (@udvi86)

    I don’t think, because the theme doesn’t have any style, this is a test site.

    If I use template and set image height 9999px, but don’t hard crop, why it get 9999px. I think, it’s a bug. Perhaps CSS of your theme override height parameter and therefore don’t see the problem.

    Another website I downgrade 2.0.66 and it’s good with template, but 2.0.66.27 it isn’t. I attached some photos.

    In 2.0.66.27 version the image get wrong height value, if I use template. In 2.0.66 version it get good value. I think the problem is in 2.0.66.16.

    Udvi

    Plugin Contributor photocrati

    (@photocrati)

    @udvi86 – Feel free to send us a Bug Report (https://www.nextgen-gallery.com/report-bug/ … please reference this topic) with your site specifics and we will see if we can sort out what you are seeing as an issue.

    We will need log in and FTP credentials for your WordPress installation so we can get a closer look. Please include those with your Bug Report.

    Thanks!

    – Cais.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Problem with thumbnails in gallery’ is closed to new replies.