Jump to content

Paletted image with alpha channel


UltraTaber

Recommended Posts

Hello.

A while ago I was working on font exporter/importer for an old game and it used 256 color RGBA palette. I wonder if there is any format that supports such palette with alpha and if there is paint.net exporter for it?

Link to comment
Share on other sites

Sounds like PNG-8

 

try looking through the filetype index - I haven't seen it but I haven't had a use for it.

 

http://forums.getpaint.net/index.php?/topic/15260-plugin-index/?p=252432

 

The built-in PNG filetype has been able to save 8-bit images since Paint.NET 3.30.

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

well guys, the alpha. none of the exporters I know about actually save 8bit alpha in 32 bit palette. paint.net default png exporter only can export 8bit images with 1 bit alpha which is not what I need.

Link to comment
Share on other sites

paint.net default png exporter only can export 8bit images with 1 bit alpha which is not what I need.

Verified. I wonder if this is a bug or a limitation of the output format.

post-44727-0-14139000-1408902424_thumb.p

Zoom in and check the edges of this circle. The alpha was converted to the secondary color during the save process.

Link to comment
Share on other sites

there was a plugin that allows to save aplha in 32bit BMP, that would be enough to me to add low color support there even though its kind of hack as well. I also thought about targas, not sure if specs allow to save alpha in palette, yet the space is there. would like to stick to easy uncompressed format as I had both bmp and tga reading implemented.

Link to comment
Share on other sites

it looks easier to write custom exporter. is it possible to save the image data from paint.net in this format - 256 color RGBA palette with alpha channel saved?

Link to comment
Share on other sites

Sorry to say but PNG does not allow to combine a paletted image with an 8-bit apha channel.

There is RGB-A and Gray-A but no Palette-A.

A palette entry may have a exactly one alpha value. To use an RGB value with different alpha you have to put it multiple times into the palette. But this reduces the amount of possible colors.

 

But maybe I'm wrong? ;-)

 

I implemented this ones in PDNAnimator which converts PDN files to APNG animations. The code contains an optimzation step which tries to create a paletted apng with transparency. But this makes only some sense if you are using not more than 32 colors.

midoras signature.gif

Link to comment
Share on other sites

  • 2 weeks later...

Sorry to say but PNG does not allow to combine a paletted image with an 8-bit apha channel.

 

I'm interested to find a format that may support this way to store a picture, not PNG in particular. if you'll check BMP, it is possible to use 32 bit color in palette, except BMP doesn't use transparency at all. but technically it fits well to save the image by the analogy with alpha BMP plugin.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...