Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Webp images deleted after saving changes to settings

$
0
0

Replies: 1

Hi Mateusz,

First of all, thank you for making this great plugin!

I’m writing to report what appears to be an issue with the plugin.
When saving changes the plugin automatically deletes all webp images. But if you enable debug mode it actually throws an error during this process when it tries to delete /wp-content/uploads-webpc/uploads/ folder, as it is not empty. It contains:
– webp-converter-for-media-test.png.webp
– webp-converter-for-media-test.png2.webp
– empty year folder – I.e. 2021

These files are not deleted an the error is thrown in /plugins/webp-converter-for-media/src/Plugin/Uninstall/WebpFiles.php on line 76

Is this happening at your end too?

– – –

Also, I think deleting all converted images when saving changes is quite unexpected behaviour. It may be appropriate when you change compression settings, but not when you disable cron task for converting images. This creates confusion because things seem to stop working for no apparent reason.

I suggest adding a note near the “Save Changes” button saying that all webp images will be deleted and that re-generating images is necessary.

– – –

Finally, not really an issue but a weirdness. I can see in the network tab that webp images are being served, but if I drag them to the desktop, some images are saved as webp while others are saved as jpg. Is there any reason for this behaviour?

I’m using version 3.0.8 of the plugin, using .htaccess rules to load images.

Thanks for your help and for making this plugin!


Viewing all articles
Browse latest Browse all 59525

Trending Articles