Site logo

Archived topic

Properly size images for mobile

5 replies · Started by Ajay Nehra on January 25, 2022

Viewing posts 1–6 of 6

I am using imagify for image optimization, so first of all I contacted imagify for this problem. But they say that "Properly size images" warnings are not related to Imagify, rather it is a theme related warning.
After that I searched about it in your support form and than I got some information about it, with the help of that I have fixed this problem for desktop but for mobile this problem is still not fixed.
Please tell me how do I fix this problem for mobile?
For example, to fix this problem in desktop, I have changed the Media Attachment Size. So how to change Media Attachment Size for mobile?
Or if there is any other way to fix this problem for mobile then tell me.

Hi there,

But they say that “Properly size images” warnings are not related to Imagify, rather it is a theme related warning.

I don't believe this is true so let's confirm.

Can you activate a Twenty series WP theme to test if the warning is still there?

There was no problem with the theme I was using before.

I thought this is a temporary problem and will be fixed when I use the plugin for Image Optimize. but it didn't fix, that's why i was first contacted to Imagify support team, i thought their plugin is not working well but they said their plugin can't fix this problem you should talk to your theme developer.

And I have fixed this problem for desktop that too with the help of your theme option.

But for mobile this problem is still not fixed that's why I am asking your help. But I don't understand why you don't want to help ? Is it that difficult?

I changed the Media Attachment Size by going to Customizer > Layout > Blog > Featured Images > Archives, then this problem got fixed for desktop
For desktop this problem is fixed by your theme option, that means for mobile you can help me to fix this problem. so help me fix this problem.

I have submitted the link of the screenshot of the reply given by imagify. Please check in private information.

Hi there,

try adding this PHP Snippet:

function set_max_srcset_width( $max_width ) {
    if ( !is_single() ) {
        $max_width = 300;
        return $max_width;
    }
}
add_filter( 'max_srcset_image_width', 'set_max_srcset_width' );

Thanks David you are the best :)

Glad to be of help

This archived topic is closed to new replies.