• Resolved akristijan

    (@akristijan)


    Hello,

    I am using your WebP converter on my WordPress page. The plugin worked but only for computer version of website.

    If you go to google’s PageSpeed insight: https://developers.google.com/speed/pagespeed/insights/

    and test my page speed, the PC version doesn’t say there is problems in image sizes. But when I go on the mobile version, it says there’s a problem in image size and it specifies the image (“woman-wearing-face-mask-using-black-laptop-computer-4031905”) is too big of a size.

    I reuploaded this image several times (because in your plugin it says that it automatically converts image formats) and I’ve also done the Regenerate images option again. However the page insight still keeps showing this image being too big in mobile version.

    Am I doing something wrong here? Is your plugin not properly converting images for mobile? Or is the problem in my theme, wordpress or elementor not dealing with reponsive versions properly?

    Thanks in advance and if anything is still not clear please specify what and I’ll try to explain further.

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

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter akristijan

    (@akristijan)

    And to add on to that, I can find the picture in all sizes in the upload folder:

    /wp-content/uploads-webpc

    So it looks like the picture is there but I don’t know for what reason it isn’t being used or utilized on mobile version. Or it is, but Google prefers even lower sizes than the one I have.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hi @akristijan,

    Thank you for your message.

    Tell me please have you read the plugin FAQ? There are answers to many questions. Remember to always read the FAQ of the plugin and other similar threads before adding a thread in the support section.

    Many problems could be solved without adding a thread, because the issue has already been raised in the FAQ or another thread. And that saves a lot of time. I will be grateful if you understand me and appreciate your and my time.

    The answer to your question is in the FAQ. Please read them carefully, and pay special attention to the question Why are some images not in WebP?.

    Thread Starter akristijan

    (@akristijan)

    I read the FAQ… That’s not where the problem lies

    “If the converted image in WebP format is larger than the original, the browser will use the original file. This converted file will be deleted. “

    Your plugin did convert the image in all sizes, and the image file sizes are a lot smaller than the original in jpeg. I can see it in the folder that I mentioned before, the folder where your plugin keeps the images. However my website is still not using the picture in WebP format. It keeps force using the jpeg version.

    There’s no reason not to as every other picture worked fine, and this one should too since it’s meeting your plugins requirements (be of smaller size than jpeg)

    I tried even manually converting both image files,

    //* WebP converting
    do_action(‘webpc_convert_paths’, $public_html/wp-content/uploads/2020/06/woman-wearing-face-mask-using-black-laptop-computer-4031905);
    do_action(‘webpc_convert_paths’, $public_html/wp-content/uploads/elementor/thumbs/woman-wearing-face-mask-using-black-laptop-computer-4031905-oqwlgwsvb58mka50nzbc26gc9br65vs18qbn634axk);

    I followed this step as well because I wanted to test if your plugin got bugged so it was using jpeg by accident:

    If you want to force the use of WebP files, uncheck the Automatic removal of WebP files larger than original option in the plugin settings. Then click on the Regenerate All button to convert all images again.

    And my website is still using the jpeg version of the website even when I force it to use WebP.

    Thread Starter akristijan

    (@akristijan)

    Also to edit my original topic, this doesn’t have to do anything with the mobile version. The issue is same in both PC and mobile version. It’s just that page speed insights notices it for mobile version and that’s why I pointed it out. My mistake

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    The image is not loaded in WebP format because the file does not exist:
    https://dekadakom.com/wp-content/uploads-webpc/uploads/elementor/thumbs/woman-wearing-face-mask-using-black-laptop-computer-4031905-oqwlgwsvb58mka50nzbc26gc9br65vs18qbn634axk.jpg.webp

    Is this file on the server in the path specified?

    Thread Starter akristijan

    (@akristijan)

    No, the /elementor/ folder doesn’t exist in /uploads-webpc/ folder.

    Can I ask you where did you get this specific path?

    All the images that WebP converter converts are located in the following folder on my server:

    /public_html/wp-content/uploads-webpc/uploads/2020/

    Thread Starter akristijan

    (@akristijan)

    I tried going through FAQ again and following all steps.

    The only thing I have related to WebP converter in debug.log file is the following line which repeats 212 times:

    [18-Jun-2020 08:27:25 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/dekadako/public_html/wp-content/plugins/webp-converter-for-media/app/Action/Convert.php on line 28

    In DevTools mode and in plugin settings when regenerating all images, there is no error shown.

    I manually converted the exact image that’s shown as loading through DevTools, after I applied image sizes through wordpress settings:

    do_action(‘webpc_convert_paths’, $public_html/wp-content/uploads/elementor/thumbs/woman-wearing-face-mask-using-black-laptop-computer-4031905-oqwlgwsvb58mka50nzbc26gc9br65vs18qbn634axk.jpg);

    This is still not converting the image into WebP from jpeg.

    I don’t know what to do anymore. Why is this one picture causing problems?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Unfortunately you used the wrong action. It should look like this:

    $paths = [
      'public_html/wp-content/uploads/elementor/thumbs/woman-wearing-face-mask-using-black-laptop-computer-4031905-oqwlgwsvb58mka50nzbc26gc9br65vs18qbn634axk.jpg',
    ];
    do_action('webpc_convert_paths', $paths);

    Also check if this path is correct.

    Thread Starter akristijan

    (@akristijan)

    Hey.

    I did as you put it and it still isn’t working. The path is correct. The image is still in jpeg format.

    I tried testing it on another PC to avoid cache. Still the same problem.

    I tried reuploading the picture again and then doing the action you provided me, now the image is not in jpeg anymore, but it’s also not in webp. It is in text/plain type.

    After it was in text/plain, I tried regenerating all images again. Now it turned it to jpeg again.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Do you have the “Automatic removal of WebP files larger than original” option selected in CMS? If so, mark it, save the changes and regenerate the images again.

    Thread Starter akristijan

    (@akristijan)

    I did it now. Still the same issue :/

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Can you give me access to your website? Please contact me via email (you can find it on my website). Your problem is very strange and it is difficult for me to determine the reason without verification.

    Thread Starter akristijan

    (@akristijan)

    Thank you for your effort but I’m sorry, I can’t give you access to the website since it belongs to a firm.

    I’ll try to figure it out on my own.

    Thanks again for the effort.

    Thread Starter akristijan

    (@akristijan)

    Just another thing to add on. I’ve noticed after your last plugin update, the “Regenerate All” option isn’t working. Nothing happens when clicking on it.

    That’s all.

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Tell me what are your settings in the admin panel? Can you send a screenshot?

Viewing 15 replies - 1 through 15 (of 24 total)
  • The topic ‘WebP converter not converting for mobile?’ is closed to new replies.