• Resolved backpackingseries

    (@backpackingseries)


    Hello,

    I’ve a strange problem from performance tests on GTMetrix. The site’s homepage suffers from oversized images resized in html/css. Strange because, I don’t see this particular error when testing other pages / posts on the site, but only on home. Here’s a report for your reference.

    https://gtmetrix.com/reports/www.backpackingseries.com/OpQz73P1

    Would appreciate any guidance to understand / resolve this.

    Kind regards,

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

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Contributor James Huff

    (@macmanx)

    Hm, I’m not entirely sure why GTMetrix is reporting that, I think it’s just misunderstanding context.

    We are definitely serving images scaled smaller than the original, but they are roughly 2x the size of the area displayed when served to devices with HiDPI displays, which is almost all mobile devices and most computers these days.

    So, we are serving the proper scaled image sizes here.

    Thread Starter backpackingseries

    (@backpackingseries)

    Thank you for the helpful explanation. It could be a GTMetrix issue.

    On a related note, the images served to posts on a mobile phone show a smaller featured image – leaving black bands on either side. For instance, this post.

    Here’s an Imgur screenshot

    https://m.imgur.com/gallery/BskCHeq

    Am I missing something wrt Photon?

    Kind regards

    Plugin Support Fotis

    (@fstat)

    Hi there,

    On a related note, the images served to posts on a mobile phone show a smaller featured image – leaving black bands on either side.

    I don’t see any black bars on the featured image when viewing that post on my phone. Also, the link to your screenshot is not working.

    Thread Starter backpackingseries

    (@backpackingseries)

    Apologies for the faux-pas. Here’s a tested imgur link for your reference.

    I am happy to note that it works okay when you try it, but I am confused too as to why the problem might happen on few of the mobile devices I have tested it on. I have cleared server cache, Cloudflare cache, browser cache, etc.

    Any advice to troubleshoot this is welcome.

    Kind regards

    Plugin Contributor James Huff

    (@macmanx)

    That appears to be how your theme is fitting images.

    Do you still see the black bars around the scaled images if you switch off just “Speed up image load times” at Jetpack > Settings in your site’s Dashboard?

    Thread Starter backpackingseries

    (@backpackingseries)

    Thank you for the direction to troubleshoot this.

    I switched off Photon and the featured images are now shown properly in full size (without black bands on either side) and shown as per theme specifications.

    Here’s a link to test (with Photon switched off): https://www.backpackingseries.com/cradle-of-happiness-the-ziro-festival-of-music/

    Could you please suggest a solution?

    Edit 1: Oh, but now the desktop version shows black space on either side! Not sure what’s wrong. Appreciate your advice.
    Edit 2: Since this is a live site, I need to switch Photon back – as it has a site-wide impact on the photos inside posts, etc. However, as mentioned above, the test result is conclusive.

    Kind regards,

    Plugin Contributor James Huff

    (@macmanx)

    Hm, I was afraid of that. Sometimes how Photon resizes images conflicts with how themes resize images.

    If this is a concern, I have to recommend leaving off just “Speed up image load times” at Jetpack > Settings in your site’s Dashboard.

    Thread Starter backpackingseries

    (@backpackingseries)

    Thank you for the advice. Actually, the site relies on Photon and I have disabled image sizes using the following snippet:

    add_filter( 'intermediate_image_sizes', '__return_empty_array', 999 );

    This problem has started only after the recent Jetpack upgrade. Could there be a conflict?

    Kind regards

    Plugin Contributor James Huff

    (@macmanx)

    That’s not one of our filters, was it recommended by the theme?

    Thread Starter backpackingseries

    (@backpackingseries)

    No, its not from theme.

    I have used it to remove extra (8-10) image sizes created by WordPress and Theme. Photon has been serving scaled images nicely up until this recent Jetpack update.

    Edit: Jetpack 7.1 Changelog (March 05, 2019) mentions this Major Enhancement

    Image CDN: add new mode that disables the creation of resized images, thus saving disk space.

    Thoughts?

    Plugin Contributor James Huff

    (@macmanx)

    You’re absolutely right, that should work.

    Would you please contact us via support (at) jetpack (dot) com so we can take a closer look? Please also include a link to this support thread.

    Thread Starter backpackingseries

    (@backpackingseries)

    Thank you. Email request sent.

    Kind regards

    Thread Starter backpackingseries

    (@backpackingseries)

    Quick update:

    So, I deactivated a plugin (possibly causing css issues) and that fixed the problem.

    Thank you very much for your support.

    Kind regards

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Photon scaled images’ is closed to new replies.