Skip to content

Webp image "overwritten" when 2 images with the same name but different extensions exist #602

@michalb314

Description

@michalb314

Hi.

Recently i came across an issue when deploying webp express on a website. This webiste doesn't have a year/month folder structure, all images are stored in the same folder. I had uploaded two images with the same name but different extension, let's call them image.jpg and image.png. When webp express is activated, it seems like it takes both those image and converts both of them to image.webp, effectively "overwriting" one of them. This results in a wrong image being displayed on the website.

From what i've gathered, this requires that both images have the same name but different extension and both be in the same upload folder.

Obviously the error here is that there's 2 files that have the same name(despite the extension), but i thought i'd report this anyway.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions