Grey image

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, xnview

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Grey image

Postby Dave-H » Thu Oct 19, 2017 8:01 pm

Hi again, the file associations are working fine again in Windows XP now, thanks!
However, there is another issue, which was also there in 2.42.
Some (but not all) of my greyscale JPG and PNG images are appearing bright red or magenta instead of black and while when viewed with XnView.
This was not the case with the older version that I was using.
Is this a settings problem or a compatibility problem?
I've attached a copy of one of the affected files.
Thanks, Dave.
:)

Chequebook Pages.jpg

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

Re: Grey image

Postby xnview » Fri Oct 20, 2017 6:40 am

i can't reproduce, could you post a screenshot?
Pierre.

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Fri Oct 20, 2017 11:33 am

Thanks Pierre!
I've attached a couple of screen grabs.
The first is the image I attached last time, the second is a large PNG image that shows the same problem, but is sometimes red and sometimes magenta, as here. The first one, the JPG, always seems to be red.
There are some others with the same problem, but I haven't been able to identify what they have in common!
They print fine, and their thumbnails are fine, it's just the normal view in XnView which is wrong.
Cheers, Dave.
:)

Image1.jpg


Image2.jpg

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

Re: Grey image

Postby xnview » Fri Oct 20, 2017 1:30 pm

really strange :) could you send me your xnview.ini
Pierre.

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Fri Oct 20, 2017 1:43 pm

Here it is!
It's in a zip file as the forum will not allow ini files as attachments it seems.
:)

xnview.zip
(6 KiB) Downloaded 12 times

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

Re: Grey image

Postby xnview » Sat Oct 21, 2017 3:39 pm

:bugconfirmed: i can reproduce now
Pierre.

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Sat Oct 21, 2017 4:26 pm

That's good!
Is that only when using my ini file?
If so I take it that it's presumably a settings problem somewhere then.
:)

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

Re: Grey image

Postby xnview » Sun Oct 22, 2017 8:06 am

in you xnview.ini, you can change UseAlpha=1
Pierre.

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Sun Oct 22, 2017 11:42 am

Thanks Pierre, that has fixed it completely!
Where is that setting in the GUI as a matter of interest, and is there any downside to setting it to 1?
There is also an "IgnoreAlpha" setting in the ini file, which on one of my installations is set to 0, and the others it's set to 1.
Which is the best setting for that parameter?
Cheers, Dave.
:)

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

Re: Grey image

Postby XnTriq » Sun Oct 22, 2017 9:30 pm

Dave-H wrote:Where is that setting in the GUI as a matter of interest, and is there any downside to setting it to 1?
There is also an "IgnoreAlpha" setting in the ini file, which on one of my installations is set to 0, and the others it's set to 1.

Hi Dave (-:

  • UseAlpha=0/1
    • View mode: ViewUse alpha channel
  • IgnoreAlpha=0/1
    • ToolsOptions...GeneralOperationsIgnore alpha channel

And here's an image with an alpha channel for you to test the effects of these settings: logo.png

Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Sun Oct 22, 2017 10:48 pm

Thanks, that's extremely helpful!
The logo displays properly with IgnoreAlpha=0 and UseAlpha=1, and my greyscale images all display fine with those settings too.
I'm not sure why you would want to use any other settings, but I guess they're useful for testing purposes.
Thanks again, much appreciated.
Cheers,
Dave.
:)

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

Re: Grey image

Postby XnTriq » Sun Oct 22, 2017 11:45 pm

Dave-H wrote:I'm not sure why you would want to use any other settings, but I guess they're useful for testing purposes.

2.png (optimzed) and 1.png look identical if Ignore alpha channel is disabled and Use alpha channel is activated, but when you turn off Use alpha channel, XnView reveals the otherwise hidden differences underneath/behind the alpha channel mask in view mode as well as the thumbnails.

See also:


Dave-H
Posts: 11
Joined: Mon Jun 20, 2016 3:01 pm

Re: Grey image

Postby Dave-H » Mon Oct 23, 2017 10:58 am

Thanks!
:)


Return to “Classic - General Support”

Who is online

Users browsing this forum: No registered users and 8 guests