NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.07k stars 2.15k forks source link

[Bug] Resolution-related features break with Windows zoom not at 100% #1163

Open WeatherWonders opened 1 year ago

WeatherWonders commented 1 year ago

Describe the bug . . . s When the Windows display zoom (Control Panel\Appearance and Personalization\Display) is set to 125%, the recorder and editor lose precision. These problems concern recording parts of a screen; I haven't tried to record a full screen.

In the recorder:

  1. The recorder's visual UI, old or new, doesn't accurately reflect the size and position of the recording region, so for precision one has to guess where that region is. More specifically, there are one or two pixels of extra space on either axis. It might be impossible to record certain regions precisely. The magnifier is made much less useful by this bug.
  2. The transparent rectangle outline on the inside of the old recorder UI becomes separated from the solid area at the top when the recording height is set to 125, 128, 130, et cetera.
  3. On occasion, the transparent outline in the old UI, or the dotted outline in the new UI, will overlap the recording region so it is visible in the recording.
  4. Start a recording of height 270 or 540, then stop it so the editor opens. Reopen the recorder from there. The height will be decremented.
  5. Already known, but it seems relevant: the new UI uses recording dimensions a pixel lower on both axes than it says.

In the editor's cropping tool:

  1. It is impossible to crop an image by one pixel in any direction.
  2. Use the tool on a 720x540 image. Set the points to 2, 2, 538, and 718. It will crop a pixel too far on both axes.
  3. If you use the visual controls to expand the cropping area to an entire image of height 241, the "bottom" input will say 240, but it can be incremented by one more.
  4. On an image of height 540, setting "top" to 0 and "bottom" to 537 will cause the preview to say "538", though it will in fact crop to 537.
  5. The preview's reported resolution sometimes changes when you re-enter the number in one of the four inputs (for example by clicking one input and then another). I was unable to reproduce this just now . . .
  6. When scrolling (or using the arrow buttons) on one of the four inputs, it skips numbers ending in 3 or 7. This also happens with the resolution inputs in the recorder.

Desktop