Partial Transparence in GFL_COLORS and GFL_GREY

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

MaxSt
Posts: 133
Joined: Fri Apr 10, 2009 9:55 pm

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt »

XnTriq wrote:Isn't it interesting that XnView v1.96.5 does a better job creating the thumbnail than with the preview:

How come?
Probably using libpng for conversion stuff, but XnView own core library for viewing?
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by XnTriq »

xnview wrote:Yes, my internal library doesn't support 8bits+alpha picture, so it's not very easy to change it.
But i'll try
  • Image
  • Image
MaxSt
Posts: 133
Joined: Fri Apr 10, 2009 9:55 pm

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt »

Doesn't work for APNG

Image
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 »

Ironically Windows XP default viewer seems to support this format too:

Image
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
MaxSt
Posts: 133
Joined: Fri Apr 10, 2009 9:55 pm

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt »

What makes it ironic? I don't get it.
lazyeugene
Posts: 16
Joined: Sat Oct 03, 2009 10:17 am
Location: Ukraine

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by lazyeugene »

Xnview displays it correctly now. Is there a chance to get updated gfl library too?
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 »

lazyeugene wrote:Xnview displays it correctly now. Is there a chance to get updated gfl library too?
By the looks of it, this might need a little more work completing in future XnView MP. In XnMP, I view the image and it displays fine at 70% but at full zoom (100%) there's a nitceable issue. Just look at these images I snapped for viewing comparisons:
Image Image Image Image Image Image Image

...Vista's viewer & explorer have no problem with displaying it
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by xnview »

Could you try XnViewMP 0.26
Pierre.
User avatar
budz45
XnThusiast
Posts: 1621
Joined: Sun Jun 03, 2007 6:05 pm
Location: UK

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 »

xnview wrote:Could you try XnViewMP 0.26
Thank you. The transparency issue you fixed in 0.261 :) :
Image
--------------------------------------------------------

Ok, there are 2 last things:

1. It would be nice if in a future version you supported it's transparency on the tab preview; http://i39.tinypic.com/x3rxi.png

2. BUG: There is a visual artefact (faint grid lines) which needs resolving when zooming in/out of this picture; http://i42.tinypic.com/sfdw1d.png To reproduce, all you need to do is zoom in and out of the picture to see the artefact. I will make a new topic about this in 'MP Bug reports' forum
All My Topics || my 'MP' Topics
My own Bookmarked topics--->for me only
lazyeugene
Posts: 16
Joined: Sat Oct 03, 2009 10:17 am
Location: Ukraine

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by lazyeugene »

We have version 3.40 now, and i dscovered that GFL_COLORMAP structure has an Alpha field now (in help it does not, but it is). And this "Alpha" really contains alpha channel for 8-bit png. But if the pucture does not contain alpha channel, it all filled by zeroes and picture gets 100% transparency. But how I can determine if a picture have an alpha channel? For now I made such a thing: I go through all of colors once, and if I got at least one nonzero value in Alpha - it signals me that alpha channel exists. It's not quite good, I think. Is there another method?
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by xnview »

Ok, i need to add a flag in GFL_COLORMAP...
Pierre.
Post Reply