Questions tagged [png-8]

PNG8 (or png-8) is a subset of possible png files. PNG8 files are indexed PNG files with either no transparency or only binary (GIF-style) transparency in which all pixels are either fully opaque or fully transparent.

PNG8 (or png-8) is a subset of possible png files. PNG8 files are indexed PNG files with either no transparency or only binary (GIF-style) transparency in which all pixels are either fully opaque or fully transparent.

define PNG8 as 8-bit indexed PNG with optional binary transparency.

Some people use "png-8" to mean 8-bit indexed files with all 256 levels of transparency allowed, but those could simply be called "indexed" PNGs. The libpng FAQ, (http://www.libpng.org/pub/png/pngfaq.html#png8-png24) doesn't mention transparency in its discussion of PNG8.

20 questions
0
votes
1 answer

Use png8 instead of png24 as RGB height map

I have a 1 band DEM geotiff, and a formula to convert altitude -> RGB and RGB -> altitude (something like this: https://docs.mapbox.com/help/troubleshooting/access-elevation-data). Using the formula (and GDAL/Python), I converted my geotiff to a 3…
Tim Autin
  • 6,043
  • 5
  • 46
  • 76
0
votes
1 answer

Create and write paletted RGBA PNG using NSImage

I'm trying to create paletted PNG image (8-bit per pixel) that uses RGBA palette (32-bit per palette entry) using Cocoa framework*. I've tried few combinations for [NSBitmapImageRep initWithBitmapDataPlanes:…] method. It seems to create appropriate…
Kornel
  • 97,764
  • 37
  • 219
  • 309
0
votes
1 answer

Handling weird png-8 with ImageIO

I'm working on a tool for Android that takes a png as an input, rescale it for several densities and save them in a directory. (Project that can be found here : https://code.google.com/p/9patch-resizer/ In order to open images, I'm using ImageIO's…
Redwarp
  • 3,221
  • 3
  • 31
  • 44
0
votes
0 answers

writing 8-bit png with a transparent color from C++ in Windows

I've got some code to generate false-color synthetic images from side scan sonar data that I want to load into Google Earth as overlays. I need to be space efficient, so 8-bit PNG files seemed to be the way to go. I can use 1 color table entry for…
0
votes
1 answer

PHP GD only: PNG24+Alpha => PNG8 does not save Alpha

Please do not post code which you have not actually tested! I have spent some time looking for this answer. There are several similar posts here on StackOverflow, but nothing I have found can produce this seemingly simple result. pngquant is very…
unidentified-1
  • 131
  • 1
  • 7
1
2