mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[GH-ISSUE #1320] [Feature Request] Independent Image Scaling and Positioning When Resizing Canvas #972
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#972
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bqliang on GitHub (Jul 23, 2024).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1320
Originally assigned to: @NickeManarin on GitHub.
For certain reasons, I often need to set the canvas size after recording, while repositioning and resizing the originally recorded image. For example, if the recording size is 100px by 100px, after recording, I want to adjust the canvas size to 200px by 200px, with the original image size unchanged, still 100px by 100px. I want to move the image to the center of the canvas, meaning the canvas may be transparent or black, and the true recorded content is only in the central 100px by 100px area. I'm not sure if my description is clear enough, but currently, ScreenToGif only allows me to adjust the canvas size, and the image resizes along with the canvas (it always stretches to fill the canvas).
In the future, would it be possible to allow independent scaling and moving of the image while adjusting the canvas size?
@NickeManarin commented on GitHub (Sep 7, 2024):
You can manage to do this by using the border feature and setting a negative margin.
With the successor of ScreenToGif v2, it will be possible to work with layers, so the canvas size can be resized independently and the layers can be freely moved/resized as well.
@bqliang commented on GitHub (Sep 7, 2024):
@NickeManarin This is a clever workaround with the border! But I’m really looking forward to the future layer feature. My goal is to adjust the overall canvas size, and with the border method, I’d still have to manually calculate the border sizes for each side (top, bottom, left, and right) as: target canvas size - recording size.