Page 1 of 1

alpha channel lost when resizing 8bit png

Posted: Thu Apr 28, 2011 9:02 am
by adamhj
when resizing a 8 bit png image file with alpha channel with most arithmetic (except nearest neighbour and bilinear), the image is converted to an 24 bit true colour picture and the alpha channel is lost

btw, is there any way to convert a 8 bit png image to 32 bit(keeping alpha channel) in batch processing?

Re: alpha channel lost when resizing 8bit png

Posted: Thu Apr 28, 2011 9:12 am
by xnview
Could you send me a sample?

Re: alpha channel lost when resizing 8bit png

Posted: Thu Apr 28, 2011 2:41 pm
by MaxSt
Yes, the first two: nearest and bilinear work fine.
But more advanced ones, like Lancsos, lose alpha channel.

Here's some examples:

http://www.google.com/logos/2011/verne-hp.png
http://www.google.com/logos/2011/bunsen11-hp-sprite.png

Re: alpha channel lost when resizing 8bit png

Posted: Fri Apr 29, 2011 2:26 pm
by xnview
Oh ok, for such picture, you must convert them in 32bits before. Other method than nearest & bilinear build always a 24bits image

Re: alpha channel lost when resizing 8bit png

Posted: Tue May 03, 2011 12:29 am
by adamhj
so is there anyway to convert them in 32bits in batch processing tool? i can only find an "add alpha channel" method but it only replace alpha channel

Re: alpha channel lost when resizing 8bit png

Posted: Tue May 03, 2011 8:44 am
by xnview
adamhj wrote:so is there anyway to convert them in 32bits in batch processing tool? i can only find an "add alpha channel" method but it only replace alpha channel
I'll add it in XnView. You have it in XnConvert