alpha channel lost when resizing 8bit png

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
adamhj
Posts: 2
Joined: Thu Apr 28, 2011 8:37 am

alpha channel lost when resizing 8bit png

Post 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?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: alpha channel lost when resizing 8bit png

Post by xnview »

Could you send me a sample?
Pierre.
MaxSt
Posts: 133
Joined: Fri Apr 10, 2009 9:55 pm

Re: alpha channel lost when resizing 8bit png

Post 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: alpha channel lost when resizing 8bit png

Post by xnview »

Oh ok, for such picture, you must convert them in 32bits before. Other method than nearest & bilinear build always a 24bits image
Pierre.
adamhj
Posts: 2
Joined: Thu Apr 28, 2011 8:37 am

Re: alpha channel lost when resizing 8bit png

Post 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: alpha channel lost when resizing 8bit png

Post 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
Pierre.
Post Reply