Skip to content

Conflict between images with the same name but different extensions  #23

Description

@SoakedTofu

Bug description

When you try to optimize multiple images to the same output format, images with the same name but a different file extension will conflict with each other.

What happened

I tried optimizing a bunch of images to WebP and a few of them had the the same name, but with a different file extension. In this case, I noticed that only one of the images will get optimized. Ex: test.png and test.jpeg will (silently) conflict, and only the former test.png will get placed in the output folder as test.opti.webp, even though the app shows test.jpeg as completed.

What was expected

Both images should get optimized and be placed in the output folder, with some sort of renaming. Ex: test.opti.webp and test(1).opti.webp

Step to reproduce

  • The bug is always reproducible

Steps to reproduce:

  • Place two images with the same name, but a different extension into the app
  • Select the same output format for all images
  • Optimize
  • Only one image will be placed in the output folder.

System information

Fedora, installed from Flatpak.

Version 1.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions