Bug 274690 - paste should not allow image to be moved outside canvas border
Summary: paste should not allow image to be moved outside canvas border
Status: REPORTED
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 16:46 UTC by bugger@nicerweb.com
Modified: 2024-12-15 15:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Paste and drag outside the canvas area (870.94 KB, video/webm)
2024-12-15 15:04 UTC, ato300
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugger@nicerweb.com 2011-06-01 16:46:52 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

When I paste in an image, I should not  be allowed to drag that image beyond the canvas border. For example, if I want to put that image flush against the upper right corner, I have to manually eyeball the placement so I don't lose any pixels outside the border or leave some blank space inside the border.

Reproducible: Always

Steps to Reproduce:
Cut and paste an image fragment, then drag it outside the border.

Actual Results:  
I can drag the whole fragment outside the picture.

Expected Results:  
The pasted fragment should stay inside the canvas border.
Comment 1 ato300 2024-12-15 15:04:35 UTC
Created attachment 176650 [details]
Paste and drag outside the canvas area

I think both approaches (the current and the requested ones) have their pros and cons. 

Sometimes, when I want to crop the (pasted) image, I find it easier to just drag it outside the canvas to the point where I'd like it to be cropped. With the rectangular selection tool you might be more limited. For example, it might be harder to pinpoint the correct location where you click (which will determine the two static lines of the rectangle). 

Another example would be when you have taken a screenshot of your desktop or a relatively large window and you need just a part of. See the attached screencast, where I've tried to demonstrate the concept. Notice how I had enough free buffer space on the right of the canvas for the part that I needed but not for the whole image. I could get and crop that part w/o having to use another temporary "buffer" and w/o having to temporarily resize my canvas.

With that in mind, even though I can definitely see the pros of the proposal, I am not sure I'd like the current behavior to change. But if this "keep within canvas" behavior is only activated when (say) holding a certain key ("Ctrl" maybe?), I think that could be useful.