Partial Transparence in GFL_COLORS and GFL_GREY

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

lazyeugene
Posts: 16
Joined: Sat Oct 03, 2009 10:17 am
Location: Ukraine

Partial Transparence in GFL_COLORS and GFL_GREY

Post by lazyeugene »

Do you plan to support alpha transparency for GFL_COLORS and GFL_GREY modes in gfl library (And XnView as well)?

For Example look at this attached file (save and use xnview or gfl-based app to view it):
RedbrushAlpha-0.5.png
RedbrushAlpha-0.5.png (113.15 KiB) Viewed 6122 times
Some examples may be found here:
http://entropymine.com/jason/testbed/pngtrans/

All RBGA pictures displays perfectly, but images with palette or grayscale images are viewed poorly :(

Thanking for your work, waiting for the answer.
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 »

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 »

Yes. I know. But my question is "Do you plan to support alpha transparency for GFL_COLORS and GFL_GREY modes in gfl library"?
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 »

lazyeugene wrote:Yes. I know. But my question is "Do you plan to support alpha transparency for GFL_COLORS and GFL_GREY modes in gfl library"?
I don't know, this feature has not a high priority
Pierre.
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 »

Image viewer not showing images correctly, and showing them correctly is not a high priority. It's pretty sad.
Last edited by lazyeugene on Thu Oct 08, 2009 5:13 am, edited 1 time in total.
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:I don't know, this feature has not a high priority
:-( Ouch!

I certainly don't want to put you under pressure or get on your nerves, Pierre. We all know very well that you've got your hands full with GFL/GFLAx, (X)nConvert, XnView v1.96 incl. Shell Extension & Media Detector, versions for PocketPC + Smartphone, and — last but not least — the new MP project.

Of course, most people use XnView for working with photos. Although I do not have the numbers to prove my point, it's my firm belief that a significant portion of the user base sees it as imaging central (or a Rosetta Stone for file formats, if you will).

Full support for all flavors of the most common image formats (BMP, GIF, JPEG, and PNG) should not be relegated to a low-level priority. It sucks that I have to rely on the competition when I'm dealing with greyscale or palette-based/indexed PNGs plus alpha channel, which are no longer a rare occurrence “in the wild”.
MaxSt
Posts: 133
Joined: Fri Apr 10, 2009 9:55 pm

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt »

Fully agree with above posters. Core functionality should not be a low priority.

We all read stories how in the past Internet Explorer couldn't handle PNG files correctly.

Well, now we have IE8 that handles PNG better than XnView.

Isn't it sad?
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 »

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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Post by MaxSt »

I thought you use libpng...

It's very simple to use [256][4] array for palette.

a) save PLTE into [col][0] and [col][1] and [col][2]
b) save tRNS into [col][3].
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 »

MaxSt wrote:I thought you use libpng...
The problem is not libpng, but my core library
Pierre.
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 »

I want to say: Thank you, Pierre! Thank you not for doing this, but for saying "i'll try" and for your work.
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 »

Today i received one psd file. There is a problem: if alpha channel is disabled, gfl (and xnview as well) still reads it. Could you fix gfl (and xnview) to not read disable channels? Thanks a lot!
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 »

lazyeugene wrote:Today i received one psd file. There is a problem: if alpha channel is disabled, gfl (and xnview as well) still reads it. Could you fix gfl (and xnview) to not read disable channels? Thanks a lot!
Could you send me a sample
Pierre.
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 »

Here is the one: http://x.uch.net/dl.php?dl_id=35499&dl_ ... 3201912b9a

It's too big to attach here (approx 1.4M), so I put it on file exchange hosting. It will keep the file for three days. Please, tell me if you can't download it, so I'll try another service to keep this file for you.
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 »

How come that XnView v1.96.5 does a better job creating the thumbnail than with the preview?
Post Reply