ryancramerdesign / TextformatterWebpImages

Format JPG/PNG img tags to use WEBP, auto-creating WEBP images as needed.
4 stars 1 forks source link

Not paying attention to 'useSrcExt' => true, #2

Open cb2004 opened 1 year ago

cb2004 commented 1 year ago

It seems like the text formatter is not paying attention to the setting in config.php:

$config->webpOptions = array(
    'useSrcExt' => true, // Use source file extension in webp filename? (file.jpg.webp rather than file.webp)
);

I dont get a .jpg.webp file extension.

This is using latest dev 3.0.223

cb2004 commented 1 year ago

I just did some further testing, if the webp image had already been created before this configuration option was in place, then the .wbp image needs to be deleted and it will create the .jpg.webp image. Is there anyway to check for the configuration option and delete just the .webp image and recreate as .jpg.webp?