Page 1 of 2

Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Sat Oct 03, 2009 11:01 am
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 4948 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.

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Sun Oct 04, 2009 7:00 am
by XnTriq

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Sun Oct 04, 2009 7:10 am
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"?

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Mon Oct 05, 2009 7:13 am
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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Wed Oct 07, 2009 5:31 pm
by lazyeugene
Image viewer not showing images correctly, and showing them correctly is not a high priority. It's pretty sad.

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 2:45 am
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”.

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 4:27 am
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?

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 11:22 am
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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 12:15 pm
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].

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 12:16 pm
by xnview
MaxSt wrote:I thought you use libpng...
The problem is not libpng, but my core library

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Thu Oct 08, 2009 1:20 pm
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.

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Fri Oct 09, 2009 4:31 am
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!

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Fri Oct 09, 2009 5:41 am
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

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Fri Oct 09, 2009 8:07 am
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.

Re: Partial Transparence in GFL_COLORS and GFL_GREY

Posted: Sun Oct 18, 2009 9:15 pm
by XnTriq
How come that XnView v1.96.5 does a better job creating the thumbnail than with the preview?