This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is there a quick shortcut for picking colors from image?

Tags: None
(comma "," separated)
o__O
Registered Member
Posts
9
Karma
0
OS
Hi! I've mostly used GIMP before, but I thought I'd try using Krita, because it seems rather nice and it integrates better with my KDE desktop. So far I like it, but I miss one feature from GIMP. in GIMP, when you have the brush tool selected, you can always quickly ctrl+click anywhere in the image to pick a color from there, without having to switch to the color picker tool. It's extremely useful, but I haven't found anything like that in Krita. :( Is it possible to do something like that?
User avatar
neverendingo
Administrator
Posts
2136
Karma
17
OS
Looks like there is already a bugreport about that, see Bug #138152.
In short, right now you can switch to the colorpicker with "P", but it doesn't switch back automatically.


New to KDE Software? - get help from Userbase or ask questions on the Forums
Communicate.
Image
User avatar
m4v
Registered Member
Posts
28
Karma
0
OS
I use 'p' for the colorpicker, and 'b' for get back to the brush

but yes, there's need for a better way
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
I'm implementing ctrl-click in the freehand tool to pick colors now. What should it do, exactly:

* pick the color at the cursor hotspot
* pick the average color under the brush footprint (this is going to take some work!)
* pick the color of the current layer
* pick the color of the whole projection
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
Sounds perfect. I'm really, really happy that a fast, sane shortcut (ctrl+click) is being used for this.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Ok, the brush tool now has the following extra features in trunk:

* press space, and you go into panning mode. For some reason, this only works if you have painted something first. Panning mode stays on until the mousebutton is released. You don't have to keep space pressed.

* ctrl-click: select the color under the cursor of the current layer
* ctrl-shift-click: select the color under the cursor of the whole image

(Question: would it be better to do this the other way around?)

Button 1: set foreground/painting color, button2: set the background color.

Note: there is no support for radius or getting the average color under the whole brush footprint yet.
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
would it be better to do this the other way around?

Yeah, I'd swap them around as the second option seems like the most common and intuitive (as it doesn't need thinking about layers). I love the idea of using button1 and 2 for foreground and background though. Intuitive and fast!
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS
Enkithan agreed with you and committed the change yesterday.
User avatar
Kubuntiac
Registered Member
Posts
786
Karma
2
Groovy. I'll give it a try today. Thanks to both of you! ;D


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]