UltraTaber Posted August 23, 2014 Share Posted August 23, 2014 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? Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted August 23, 2014 Share Posted August 23, 2014 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 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
null54 Posted August 23, 2014 Share Posted August 23, 2014 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. 1 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 More sharing options...
TechnoRobbo Posted August 24, 2014 Share Posted August 24, 2014 The built-in PNG filetype has been able to save 8-bit images since Paint.NET 3.30. Thanks for the info, and it appears to work with well TR's Color Reducer for editing the color table Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
UltraTaber Posted August 24, 2014 Author Share Posted August 24, 2014 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. Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted August 24, 2014 Share Posted August 24, 2014 What was the extension Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
TechnoRobbo Posted August 24, 2014 Share Posted August 24, 2014 was the format called PIX_FMT_PAL8 Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
BoltBait Posted August 24, 2014 Share Posted August 24, 2014 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. Zoom in and check the edges of this circle. The alpha was converted to the secondary color during the save process. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
TechnoRobbo Posted August 24, 2014 Share Posted August 24, 2014 From what ive read, PNG format definition does not allow paletted RGBA but can be hacked to do so. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
UltraTaber Posted August 25, 2014 Author Share Posted August 25, 2014 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. Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted August 25, 2014 Share Posted August 25, 2014 I believe it maybe the PNG8 format with the extra transparency chunk http://www.libpng.org/pub/png/book/chapter08.html#png.ch08.div.5.2 None of my graphic programs can convert to it. Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
UltraTaber Posted August 26, 2014 Author Share Posted August 26, 2014 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? Quote Link to comment Share on other sites More sharing options...
midora Posted August 26, 2014 Share Posted August 26, 2014 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. Quote Link to comment Share on other sites More sharing options...
UltraTaber Posted September 6, 2014 Author Share Posted September 6, 2014 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. Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted September 6, 2014 Share Posted September 6, 2014 Try this Software http://www.jpegimager.com/ji/palette_alpha.html It speciffically deals with the PNG8 format Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.