Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

[BUG]: Numbered images logic needs an update to prevent overriding existing images #291

@andi34

Description

@andi34

Describe the bug
Currently we're counting the files inside the images folder or reading
database lenght to get the image name.
We are not really checking for the next available number which could
cause that we're loosing made images.

Example 1:
We have 3 images: 0001.jpg, 0002.jpg and 0003.jpg
Next image-name will be named 0004.jpg
Everything is fine here

Example 2:
We have 2 images: 0001.jpg and 0003.jpg
Next image-name will be named 0003.jpg!
This will override the already existing 0003.jpg!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingstale

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions