[fixed] CheckerColor# has red and blue channels reversed

Bugs and Suggestions in XnView Classic which have been resolved

Moderators: XnTriq, xnview

Post Reply
User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

[fixed] CheckerColor# has red and blue channels reversed

Post by ckv » Mon Sep 14, 2009 5:47 pm

CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).

Example: If you set CheckerColor1=255 which should result red checker, but instead you get blue checker.

The problem exist with both colour coded and non-coded values.
Last edited by ckv on Fri Nov 27, 2009 11:52 am, edited 1 time in total.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by Clo » Mon Sep 14, 2009 7:20 pm

:arrow: ckv

:) Hello !

• I think that you might set a complete colour code… For instance, here I have :
[View]
CheckerColor1=#FFD7FF
CheckerColor2=#FFFFE7
… and that works perfectly…

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by ckv » Mon Sep 14, 2009 7:31 pm

Clo wrote::arrow: ckv

:) Hello !

• I think that you might set a complete colour code… For instance, here I have :
[View]
CheckerColor1=#FFD7FF
CheckerColor2=#FFFFE7
… and that works perfectly…

:mrgreen: KR
Claude
Clo
It is a complete colour code. It is just a non-coded color value and it translates to 255 0 0 or #FF0000 as a coded value. If you use any of these values 255, 255 0 0 or #FF0000 you should get a fully red checker, but instead you get blue checker.

In your example CheckerColor1 has same value for red and blue, so sure it works. But CheckerColor2 has different values and this is what it looks like on my screen .
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

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

Re: CheckerColor# options has red and blue channels reversed

Post by XnTriq » Mon Sep 14, 2009 7:45 pm

:bugconfirmed: I had noticed that too, but I forgot to report it. Thanks, ckv!

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by ckv » Mon Sep 14, 2009 8:35 pm

ckv wrote:It is a complete colour code. It is just a non-coded color...
:mrgreen: lol
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by Clo » Mon Sep 14, 2009 8:51 pm

:arrow: ckv

:) Again…
…But CheckerColor2 has different values and this is what it looks like on my screen (light blue)
• Here it's "cream" on MY screen as it should !
- Gentlemen, I guess that something is wrong in your machines… or your graphic cards settings… Image

:mrgreen: KR
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by ckv » Mon Sep 14, 2009 9:35 pm

Clo, if you set CheckerColor1=#FF0000, do you get red checkers?
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

User avatar
oops66
XnThusiast
Posts: 1999
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Re: CheckerColor# options has red and blue channels reversed

Post by oops66 » Mon Sep 14, 2009 9:55 pm

ckv wrote:CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).
Right, I have the same problem here.
XnViewMP 0.82 Linux X64 - Ubuntu 16.04 LTS - X64

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

Re: CheckerColor# options has red and blue channels reversed

Post by XnTriq » Tue Sep 22, 2009 10:00 pm

ckv wrote:CheckerColor1 and CheckerColor2 options are using reversed red and blue channels. Meanin that red is used as blue and blue as red (BGR).
ToolbarBackColor has the same bug.

marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

oops again.

Post by marsh » Wed Sep 23, 2009 4:40 am

Please disregard my post.

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by ckv » Sat Nov 14, 2009 9:59 pm

Not fixed in XnView 1.97 beta.

Only the # or $ formated colors work with CheckerColor1 / CheckerColor2 settings, but raw color and R G B formated values still doesn't work. E.g. CheckerColor1=16711680 or CheckerColor1=0 0 255 should result blue checker, but instead it's red.


This fix also caused a regression with all other formated # and $ color entries.

Example:
TreeBackColor=#0000FF
TreeFontColor=#FFFF00
TreeFontHiColor=#FF0000
These settings should result a folder tree that should look like this:
Image

But in XnView 1.97 beta it looks like this:
Image


Looks like this bug is fixed in the wrong place, as this quote from the changelog hints "INI Color entry with # or $ are reversed"

The problem was not that all # or $ formated colors are reserved, but only CheckerColor1 and CheckerColor2 color entries are reserved. Even the raw non fromated values are reserved with these two settings.
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

User avatar
xnview
Author of XnView
Posts: 32056
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by xnview » Sun Nov 15, 2009 1:18 pm

ckv wrote:Not fixed in XnView 1.97 beta.
Ok, i've not fixed the good thing. Could you send me your email by PM, please?
Pierre.

User avatar
ckv
Posts: 779
Joined: Wed Feb 02, 2005 2:30 pm
Location: Glow
Contact:

Re: CheckerColor# options has red and blue channels reversed

Post by ckv » Fri Nov 27, 2009 11:52 am

Fixed in XnView 1.97 beta 4
XnView Tweak UI - Tool to customize your XnView beyond the regular XnView options.
UI-less Settings - Documentation of all the hidden settings in XnView.
XFAM - Tool to create and customize XnView file associations.

Post Reply