Hi @blurry7923,
Thank you for your message.
Could you please send me a screenshot of this and the URL to the image that has not been converted?
Best, Mateusz
Hello @mateuszgbiorczyk ,
Thank you for the quick reply.
Here is the URL with no file conversion.
Have you identified the error?
Best regards,
Thanks @blurry7923,
Can you send me a screenshot of the Bulk Optimization of Images section in the plugin settings.
Hello @mateuszgbiorczyk ,
Here are the screenshots:
Screenshot 1
Screenshot 2
Screenshot 3
Apart from the jpeg conversion issue, I found that the completion rate is above 100% (in Screenshot 1).
Thanks,
Thanks @blurry7923,
Could you describe step by step all the activities you did before the counter exceeded 100%?
Can you send me also a screenshot of the Help Center tab in the plugin settings?
Thanks @blurry7923,
Can you download the entire /uploads folder in the /wp-content directory?
Do you have any confidential or private images there? If not, could you send it to me? I will test it and let you know what happens.
I can send you a sample of 3:
Sample 1
Sample 2
Sample 3
Have you checked in the code if it could be a potential “.jpeg” issue? It is really weird that only .jpg works. I just tried for the same exact picture, in which I just changed the extension, and it is compressing the .jpg and keeping as it is the .jpeg.
Also, a nice feature to have would be to have a checkbox in your settings, which rename the extension of newly uploaded files from their original extension, to .webp, so when it loads in the website, we don’t have weird extension which are not related to the real extension.
Thanks @blurry7923,
I have located the problem related to the incorrect calculation of the percentage of converted files. This was caused by trying to convert WebP files to WebP format. I fixed it in this plugin version:
As for the “is not a valid image file” problem, there is indeed a problem with some of the images on your website. Please see for yourself the examples:
I also checked the issue of .jpeg files and both .jpg and .jpeg files are converted. There are no problems with this on my test environment. I haven’t had any reports of such issues either.
Can you check via FTP client if the following files exist on your disk?
- /wp-content/uploads-webpc/uploads/2022/12/rocket-launch.jpeg.webp (or similar with that file name)
- /wp-content/uploads-webpc/uploads/2022/12/image-climbing.jpg.webp
@mateuszgbiorczyk
Thanks for the plugin, I will wait for the official release of the new version of your plugin.
For the problem “is not a valid image file”, I don’t really worry, because the issue is raised on very old file, so I am just thinking about changing them.
I checked on the FTP and the files don’t exist.
I just used a random jpeg image on google and name one with the extension .jpeg and the other as .jpg and still no conversion for the second one (or at least no stats about that one). Are you sure about the test you performed in you test environment?
Thank you for your answer @blurry7923,
I will wait for the official release of the new version of your plugin.
You can install this version now – I will add these changes in the next update.
I checked on the FTP and the files don’t exist.
Are you sure? Are you sure you’re checking them in the right location?
Are you sure about the test you performed in you test environment?
Yes!
- /wp-content/uploads-webpc/uploads/2022/12/rocket-launch.jpeg.webp (or similar with that file name) => ❌
- /wp-content/uploads-webpc/uploads/2022/12/image-climbing.jpg.webp ✅
For the jpg issue, i will need to rename every old .jpeg file to .jpg file, if you don’t see the issue. Are you sure you didn’t let an environment variable or something like that, around, in your test environment?
@blurry7923
For the jpg issue, i will need to rename every old .jpeg file to .jpg file, if you don’t see the issue.
Please don’t do that – it’s a bad idea.
Are you sure you didn’t let an environment variable or something like that, around, in your test environment?
I’m sure.
Please install this version of the plugin and run the conversion of all images again by checking the “Force the conversion of all images again” option.
Then please make me a screenshot of the entire list of errors that will appear during the conversion process.
I ran the new version of the plugin:
1: Now it finish at 100% 😁
2: some not valid image error, but it is ok
3: no error for .jpeg image, but still no conversion
Thanks @blurry7923,
In the “Bulk Optimization of Images” section, please find “List of files that can be optimized”. Please expand the directories so that you can see the directory “uploads -> 2022 -> 12”.
Do you see the rocket-launch.jpeg file there? Please take a screenshot and send it to me.
