Bug 285429 - Transform gizmo and center should be the size of the layer, not image size. ((feature request for texturing)
Summary: Transform gizmo and center should be the size of the layer, not image size. (...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.4-snapshots
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-31 21:05 UTC by Anna Celarek
Modified: 2018-05-25 12:13 UTC (History)
4 users (show)

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


Attachments
left is the wish, right is the current situation. (720.01 KB, image/png)
2011-10-31 21:05 UTC, Anna Celarek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anna Celarek 2011-10-31 21:05:33 UTC
Created attachment 65095 [details]
left is the wish, right is the current situation. 

Version:           2.4-snapshots (using KDE 4.7.2) 
OS:                Linux

Currently, the transform gizmo of a layer is of the size of the whole image, no matter how large the layer actually is. So if I have for example a small eye, positioned somewhere on the texture of a whole animal, to rotate it I have to deal with a rotation center far away from that eye. 

Would be great if the transform gizmo would always adjust itself to what is on the layer, i.e. the gizmo left border should be at the leftmost pixel of the layer with non-zero transparency and so on. 
After doing trasnformations AND applying them, the gizmo should re-adjust itself to the new situation, with borders parallel to the monitor again. 

A similar option for selections would be also beneficial. If I select something that is fully transparent at the borders, the selection should shrink till it covers only opaque parts. Can result in irregular selection borders (which are no problem in Krita as I've seen), or in no selection.   
I'm not sure if every user would be happy with such selection shrinking, but certainly it would be great as an option to chose, dependent on the situation. 

Reproducible: Always


Actual Results:  
1.) Layer transform gizmo covers the entire image by default. 
If I transform it, the gizmo remembers the transformation and starts in that position the next time I want to transform the layer. 

2.) Selections are not aware of transparency. 

Expected Results:  
1.) Transform gizmos for layers should be placed at the edges of the layer (where it becomes fully transparent), the gizmo center in the middle. They should re-adjust themselves after each applied transformation. 

2.) (As an option): Selection should shrink the same way (if I use a large rectangle select over a small object, the selection borders should move themself so that they surround only opaque parts.
Comment 1 Halla Rempt 2011-11-01 07:43:07 UTC
Hi Anna,

Hm... Yes -- well, in fact, Krita layers don't really have a fixed size, but I see what you mean. It's probably doable, as well as adding a shrink selection to layer size action, that should in fact be quite easy. It is something we won't be able to do until after 2.4 has been released, though -- we're in feature freeze now. But keep the requests coming, they are great!
Comment 2 Anna Celarek 2011-11-01 10:48:20 UTC
Hi Boud, 
thanks for the answer, I'll keep them coming. The most important things for me are those 4 posted yesterday. Glad to hear there's any chance for them to be implemented.
Comment 3 Dmitry Kazakov 2013-01-24 06:56:38 UTC
Hi Anna!

I think this bug in already fixed in krita-fixed-transformation-kazakov branch. It will be merged into master today, I think :)

Now we do the following way:
1) If the layer has some default background color, then the whole image is selection
2) If the layer has transparent default backgroung, only the opaque part of it is selected
3) If there is an active selection present, then the transform tool transforms this selection only.
Comment 4 Raghavendra kamath 2018-05-20 16:24:00 UTC
Hi Anna,


can you please check if this bug is reproducible in the latest version of Krita

For now I am closing this bug report since we have not received any reply on this from you.


If you are still able to reproduce the bug in latest version of Krita,

Please feel free to reopen the bug report.
Comment 5 Anna Celarek 2018-05-25 12:13:17 UTC
Works perfectly in the current version! Thanks.