Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where file extension had an extra '.' under some circumstances #15893

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

alcacode
Copy link
Contributor

Fix bug where under some circumstances an extra . was inserted between the file base name and the file extension.

The bug is triggered when the extension argument is one of "jpg", "jpeg", or "webp", and the image exceeds the format in question's width or height limit. Then the extension variable is set to ".png", resulting in the fullfn variable to evaluate to a string ending with ..png.

Fix bug where under some circumstances an extra "." was inserted between the file base name and the file extension.
The bug is triggered when the extension argument is one of "jpg", "jpeg", or "webp", and the image exceeds the format's dimension limit. Then the extension variable is set to ".png", resulting in the fullfn variable to evaluate to a string ending with "..png".
Copy link
Collaborator

@w-e-w w-e-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks
that was my bug

@AUTOMATIC1111 AUTOMATIC1111 merged commit 00f37ad into AUTOMATIC1111:dev Jun 8, 2024
3 checks passed
@lawchingman lawchingman mentioned this pull request Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants