Featured images not displaying at full resolution

The image in my media library is 560×31, but when I inspect the image this is the code I find. srcset images are being loaded instead of my full resolution image.

<img src=”https://domain.com/feat-image-150×84.png” class=”alignleft post-image” alt=”Return of Medicare OEP”
srcset=”https://domain.com/feat-image-150×84.png 150w,
https://domain.com/feat-image-300×169.png 300w,
https://domain.com/feat-image.png 560w” sizes=”(max-width: 150px) 100vw, 150px”>

I’ve tried:

Turning off any plugins that affect images
Changing the image sizes
in Settings > Media
Regenerated every image a multiple times

I even removed the srcset images with:

function wdo_disable_srcset( $sources ) {
return false;
add_filter( ‘wp_calculate_image_srcset’, ‘wdo_disable_srcset’ );

but that just made it worse.

How do I make WordPress use the full resolution image I uploaded?

Read more here:: Featured images not displaying at full resolution

Leave a Reply

Your email address will not be published. Required fields are marked *