[GH-ISSUE #351] Improper Number Manipulation when Incrementing / Decrementing filenames #290

Closed
opened 2026-02-26 09:30:52 +03:00 by kerem · 4 comments
Owner

Originally created by @NoiSek on GitHub (Jul 3, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/351

When specifying video output options and attempting to increase or decrease the filenumber, the code here will always affect the last number of a filename:

github.com/NickeManarin/ScreenToGif@1a4399a062/ScreenToGif/Windows/Editor.xaml.cs (L4726)

Meaning a filename with an extension specified that includes a number will increment / decrement the extension rather than the filename itself.

As an example, with a filename like filename25.mp3, incrementing five times would produce the following output:

  • file25.mp4
  • file25.mp5
  • file25.mp6
  • file25.mp7
  • file25.mp8
Originally created by @NoiSek on GitHub (Jul 3, 2018). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/351 When specifying video output options and attempting to increase or decrease the filenumber, the code here will always affect the last number of a filename: https://github.com/NickeManarin/ScreenToGif/blob/1a4399a0622ca44213d2ae0b2e18abcd6446ed61/ScreenToGif/Windows/Editor.xaml.cs#L4726 Meaning a filename with an extension specified that includes a number will increment / decrement the extension rather than the filename itself. As an example, with a filename like `filename25.mp3`, incrementing five times would produce the following output: - file25.mp4 - file25.mp5 - file25.mp6 - file25.mp7 - file25.mp8
kerem 2026-02-26 09:30:52 +03:00
Author
Owner

@NickeManarin commented on GitHub (Jul 3, 2018):

The file extension is not supposed to be typed directly into the filename text box. There's a combo box (selector) to the right. :)

<!-- gh-comment-id:401989361 --> @NickeManarin commented on GitHub (Jul 3, 2018): The file extension is not supposed to be typed directly into the filename text box. There's a combo box (selector) to the right. :)
Author
Owner

@NickeManarin commented on GitHub (Jul 3, 2018):

Btw, which version are you using? The latest version has a dropdown (with the file formats) very close to the text field where you type the filename.

<!-- gh-comment-id:402321510 --> @NickeManarin commented on GitHub (Jul 3, 2018): Btw, which version are you using? The latest version has a dropdown (with the file formats) very close to the text field where you type the filename.
Author
Owner

@NoiSek commented on GitHub (Jul 4, 2018):

I am not using any version of this, I'm just passing along information from the thread that it seems you have already discovered 😄

Figured someone should actually raise the issue on the repo when I saw there was no bug filed.

<!-- gh-comment-id:402324472 --> @NoiSek commented on GitHub (Jul 4, 2018): I am not using any version of this, I'm just passing along information from the thread that it seems you have already discovered 😄 Figured someone should actually raise the issue on the repo when I saw there was no bug filed.
Author
Owner

@NickeManarin commented on GitHub (Jul 4, 2018):

That user was using an old version of the app, in which the file format dropdown was not very close to the filename.
The current version of the app has a more easy to understand layout. So this is no longer a problem.

<!-- gh-comment-id:402347436 --> @NickeManarin commented on GitHub (Jul 4, 2018): That user was using an old version of the app, in which the file format dropdown was not very close to the filename. The current version of the app has a more easy to understand layout. So this is no longer a problem.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#290
No description provided.