3

EDIT: I use X11 now and I have no problem.

I've seen many apps posted here, but right now in my laptop with 19.10 none of them work.

I've tried Agave, Gpick, and Grabc .

They all give back the color black regardless of where I put the cursor on #000000

6
  • is there a workaround?
    – igorgue
    Oct 24, 2019 at 22:14
  • 1
    Are you really using 9.10, or did you mean to type 19.10? Please click edit and fix it if that's what you meant.
    – K7AAY
    Oct 24, 2019 at 22:17
  • 2
    That's expected behavior if you are using Wayland. In Wayland, applications do not have permission to see pixels outside their own box. (Yes, it's a reported bug). The workaround is to logout and login to an X session. Use the little 'gear' icon on your password screen to select Ubuntu using X.
    – user535733
    Oct 24, 2019 at 22:32
  • Ubuntu 9.10 from 2009-October? or Ubuntu 19.10 from 2019-October. There is a decade of difference between them...
    – guiverc
    Oct 24, 2019 at 23:02
  • Sorry all! Yeah I meant 19.10
    – igorgue
    Oct 25, 2019 at 18:42

2 Answers 2

2

Here is a workaround.

Open your image, a screenshot you made or a web page with Firefox.

file:///your_directory/your_image.png

In Firefox go to : Tools > Web Developer > Eyedropper

Left click on the color you want. It's copied in the clipboard.

For example : Hex: #497FC1

0

Here is the X11 native solution that

  • doesn't require any external packages like Agave, Gpick, or Grabc etc.
  • and it doesn't limit to web pages (like the previous answer) either

Just run xmag. From its man page:

  • The xmag program allows you to magnify portions of an X screen.
  • The area can be dragged out to the desired size by pressing Button 2.
  • Once a region has been selected, a window is popped up showing a blown up version of the region in which each pixel in the source image is represented by a small square of the same color.
  • "Pressing Button1 in the enlargement window shows the position and RGB value of the pixel under the pointer until the button is released" -- this, is the X11 native solution for Color Picker.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.