Filenames conflict while using webp
-
Hey guys, thanks for a great plugin!
I’m using it to automatically generate webp versions and serve them in a picture tag with global replacement.
I just came across an issue, when there are media files with the same filename but different extension, e.g. img1.jpg, img1.png, img1.svg.
On the frontend
– the svg IMG tag gets picture element with webps generated from jpg (should be none)
– the png IMG tag does get picture element with correct webps generated from png, but only for scaled sizes – max resolution is missingAfter renaming the files to e.g. img1.jpg, img2.png, img3.svg, problems are gone.
Any idea, how to solve it on the side of Shortpixel or WordPress media library itself (to rename the files in the first place, right after uploading)?
The topic ‘Filenames conflict while using webp’ is closed to new replies.