Plugin doesn't compress all of the sizes
-
Hey, I try to compress all my images. And it does the job, it’s very good! But in some pictures it can’t compress all of the sizes. here’s the screen from my media library: https://s10.postimg.org/ux8vy8nux/Bez_tytu_u.png
How to solve it?
-
Hi,
Thanks for the compliment.
We’re sorry to hear that not all of your image sizes are successfully compressed.Do you know for which size this is? We have noticed that users had similar problems before when existing files had to be overwritten but couldn’t be because of the files being owned by a different user on the filesystem.
What you could do is compress one image manually, and check the filesystem which image sizes are correctly created and which aren’t.Hey. I’ve downloaded from ftp all of the sizes of 2 random images. And I’ve compressed them manually on your page.
What is strange, the first file (DSC_1361a) has 18 sizes on the ftp. But in media library in WordPress, there’s a text next to this file: Compressed 18 out of 19 sizes. What is more strange, when I’ve compressed all of the sizes of this image using your page – they’ve compressed even more! Photo: https://s1.postimg.org/uyp30mial/aaa.png
And what about the second file… It has 19 sizes in ftp and the plugin says next to that file in media library: Compressed 18 out of 19 sizes. Here’s the photo of compressing all of the sizes on ur page: https://s1.postimg.org/auiyb8obj/bbbb.png It looks like the size 1200×520 wasn’t compressed but I’m not sure.
Hi,
You can indeed see some further compression when you compress the image again, but also the quality will go down. We try to get the best compromise between file size and quality on the first time compressing.
It’s weird that you notice different behaviour for those two images. Were both images already present when you enabled our plugin, or did you add them later on?
What happens when you add a new image? Do you get all sizes compressed, or is there also one missing? It would also be helpful to know perhaps if it’s always the same size that is missing.Those 2 files were uploaded after downloading plugin. Old files have the same problem – sometimes it’s 19/19 compressed files but sometimes it’s 18/19. When I add new file there’s the same – sometimess all sizes get compressed and sometimes not.
I’m not sure how to make a ‘multiple check’ which file wasn’t compressed. Any idea? ??
Thanks for the additional information.
Unfortunately, there’s no easy way other than manually check it image by image.We’ve had a case like this before, which was caused by incorrect permissions on the filesystem.
Perhaps you can take a look at an image where you notice 19 images on the filesystem, yet in the Media Library it says 18 out of 19 compressed.
You mentioned before, that for the second example you gave it looked like the 1200×520 size wasn’t compressed. Can you see any difference between that image size and image sizes that are compressed correctly on your filesystem (ftp), ie. a different user that owns the file? What happens when you compress the file again? Do you notice that the 1200×520 image is updated on the filesystem?First of all, thank you for great contact and support. It rarely happens that plugin author answers on every question.
Every sizes have the same permissions on ftp and the only difference I can see after compressing that file again is that the size 300×200 was a little bit smaller.
What permissions should have uploaded images?
If all files have the same permissions on your file system, then it looks like that ain’t the cause of the problem you are experiencing.
What happens when you compress an image of which 18 out of 19 sizes are already compressed, is that it should attempt to compress the size that wasn’t compressed. I would then expect something to change on the filesystem for the missing size. The old file should be overwritten by the new one.
In case you see this happening, then it could also be related to which metadata is stored. Our plugin stores metadata for each image that is compressed in your Media Library. It stores information such as the file size for each size. When opening the Media Library our plugin checks the filesystem whether the sizes stored in the metadata of the image in the WordPress database is equal to the file size on the filesystem.
This means that when you would overwrite one of your images on the filesystem, that the plugin would notice that, and show in the Media Library that not all sizes are compressed yet.As of yet, we haven’t been able to get the same behaviour that you’re getting ourselves. We’ve only seen in with other users installs, and mostly those problems were, like i mentioned before, caused by incorrectly set file system permissions. In those cases the images on the filesystem were owned by for example the root user, which caused compressions made by the WordPress plugin to not be written to the filesystem as WordPress was running as a different user, having less privileges.
Hi,
We found a bug that occurred when multiple image sizes were configured that had the same dimensions.
From the screenshot you showed previously, it doesn’t look like you have image sizes configured with the same dimensions, but it might be interesting to try out the latest version of our plugin if you haven’t already. Hopefully, the bugfix we included will also solve the problem you were having.
If you do test it out then we’re eager to hear the results!
It works! Every size compresses! Thank you for update and for awesome support. That’s the first time I’ve met a support which answers on every question and even if I don’t answer, you answer me after some time. Thank you.
You’re welcome ?? Happy to hear that it fixed the problem you were having as well!
- The topic ‘Plugin doesn't compress all of the sizes’ is closed to new replies.