Support » Plugin: AMP » Google Search Console: Image size smaller than recommended size

  • Resolved Udegbunam Chukwudi

    (@strictlyonlinebiz)


    I just got an alert that Google has a problem with 147 pages on my site because of Image size smaller than recommended size. Unfortunately the images in question triggering the error aren’t listed.

    I’ve run my pages through the AMP Validator and no errors come up at all. Is Google having a moment? I’ve never had this issue for as long as I can remember.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    The AMP Validator reports a subset of the issues that Google Search Console flags. Google Search has additional requirements beyond AMP in order to best integrate AMP results into Google’s search results. So that is why there is a discrepancy.

    The AMP plugin returns the full (original) image as uploaded to WordPress: https://github.com/ampproject/amp-wp/blob/42fe1c1b24d848a2ef599ee47cc9e052faa05411/includes/amp-helper-functions.php#L798-L807

    @strictlyonlinebiz In your schema.org metadata I see:

    {
        "@context": "http://schema.org",
        "@type": "BlogPosting",
        "author": {
            "@type": "Person",
            "name": "Udegbunam Chukwudi Emmanuel"
        },
        "dateModified": "2018-09-26T10:07:46+00:00",
        "datePublished": "2017-08-14T15:00:41+00:00",
        "headline": "Solved: This Item Isn’t Available In Your Country – No Root No VPN",
        "image": {
            "@type": "ImageObject",
            "height": 640,
            "url": "https://i2.wp.com/www.patchworkoftips.com/blackbee/wp-content/uploads/2017/08/This-Item-Isnt-Available-In-Your-Country-1.png?fit=360%2C640&ssl=1",
            "width": 360
        },
        "mainEntityOfPage": "https://www.patchworkoftips.com/solved-this-item-isnt-available-in-your-country-no-root-no-vpn/7101/",
        "publisher": {
            "@type": "Organization",
            "logo": {
                "@type": "ImageObject",
                "height": 32,
                "url": "https://i2.wp.com/www.patchworkoftips.com/blackbee/wp-content/uploads/2016/12/cropped-CHEW.png?fit=32%2C32&ssl=1",
                "width": 32
            },
            "name": "Patchwork Of Tips"
        }
    }

    Note the image is only 360×640 at the original resolution. One solution would be to add letterboxing to the image to add margin to either side. This will require you to re-upload the image, however.

    Udegbunam Chukwudi

    (@strictlyonlinebiz)

    @westonruter *sighs* reuploading images in 147 posts is something I just don’t think I have the time/strength for. I just leave things as they are and hope some solution comes up that doesn’t require editing old posts and reuploading images. Thanks sir

    Plugin Author Weston Ruter

    (@westonruter)

    I have filed an issue to add warnings when a post lacks a featured image with the required dimensions: https://github.com/ampproject/amp-wp/issues/1812

    Coming up with some way for the plugin to upscale/letterbox smaller images retroactively would be challenging to do in the plugin, though I know it is even more of a challenge to do manually.

    Plugin Author Weston Ruter

    (@westonruter)

    The image itself is not the issue. It is the Schema.org metadata. You can use the amp_post_template_metadata filter to customize the image field to either remove it or change it to something else.

    For example:

    add_filter( 'amp_post_template_metadata', function( $data ) {
        unset( $data['image'] );
        return $data;
    } );

    That should remove the image entirely for Google Search Console, but then it will likely complain about there being no image at all.

    Udegbunam Chukwudi

    (@strictlyonlinebiz)

    @westonruter could you give us an example of replacing all featured images with just one image instead of removing it entirely? Thanks

    Plugin Author Weston Ruter

    (@westonruter)

    could you give us an example of replacing all featured images with just one image instead of removing it entirely? Thanks

    No, because this would also violate the guideline: “Images must represent the marked up content.”

    Udegbunam Chukwudi

    (@strictlyonlinebiz)

    @westonruter 🤦‍♂️🤦‍♂️🤦‍♂️ Thanks

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I’ve removed all of the replies of users hoping onto this topic.

    If you need support then per the forum guidelines please start your own topic.

    https://wordpress.org/support/guidelines/#post-in-the-best-place

    You can do so here.

    https://wordpress.org/support/plugin/amp/#new-post

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Google Search Console: Image size smaller than recommended size’ is closed to new replies.