Partial Transparence in GFL_COLORS and GFL_GREY

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt » Mon Oct 19, 2009 4:21 am

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: 5401
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by XnTriq » Wed Nov 04, 2009 12:30 am

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 » Sat Nov 21, 2009 7:15 pm

Doesn't work for APNG

Image

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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 » Sun Nov 22, 2009 3:14 pm

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 » Sun Nov 22, 2009 4:20 pm

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 » Sat Mar 27, 2010 8:10 am

Xnview displays it correctly now. Is there a chance to get updated gfl library too?

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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 » Sat Mar 27, 2010 8:54 am

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: 31174
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by xnview » Tue Mar 30, 2010 8:29 pm

Could you try XnViewMP 0.26
Pierre.

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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by budz45 » Wed Mar 31, 2010 7:38 am

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 » Fri Nov 04, 2011 10:02 am

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: 31174
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by xnview » Mon Nov 07, 2011 8:59 am

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

Post Reply