Color picker strange results

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: XnTriq, xnview

Hanswurst
Posts: 4
Joined: Sun Jun 19, 2016 7:29 pm

Color picker strange results

Postby Hanswurst » Fri Nov 24, 2017 11:36 am

The color of the attatched picture is HEX #717173 or RGB (113, 113, 115) (255 could be added for alpha channel).

If I inspect it with the color picker of XnView classic 2.43, it tells me RGB (71, 71, 73, 255) and HTML (#FF474749). That's wrong.

The # suggests that HTML is the HEX representative, which makes no sense with 8 digits instead of 6.

/edit
ok sorry, wait a second... much confusion going on right now
There is a new convention which allows 8 digits in CSS HEX color values, but then the transparency should be the last two digits, not the first. In the specs it's still a working draft.

/edit2
The colour of the attatched picture is indeed rgb(71,71,73)=#474749, so XnView is more or less showing correctly. Please put the alpha channel information for 8-digit HEX at the end instead of beginning.
The confusion was partly caused by the different color perception depending on the background color around the picture. Furthermore a color from my color scheme (#717173) has the same value numbers for hex as another from the scheme in rgb.
Attachments
Screenshot (88) - Kopie.png
grey colour example
Screenshot (88) - Kopie.png (188 Bytes) Viewed 58 times

User avatar
XnTriq
Moderator & Librarian
Posts: 5121
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Color picker strange results

Postby XnTriq » Fri Nov 24, 2017 3:30 pm


Hanswurst
Posts: 4
Joined: Sun Jun 19, 2016 7:29 pm

Re: Color picker strange results

Postby Hanswurst » Sat Nov 25, 2017 10:34 pm

So... if you don't change it from #AARRGGBB to #RRGGBBAA, then please relabel it and make it clear. Maybe separate it as suggested in the thread posted by XnTriq.

It's definitely not HTML and you can't use it in CSS, as the living standard is #RRGGBBAA there. And that's actually still a draft for oncoming CSS4 (as mentioned above), so it really really isn't html.

/edit
CSS3 specs (the current standard) even say
Unlike RGB values, there is no hexadecimal notation for an RGBA value.


Return to “Classic - Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest