Questions tagged [png]

PNG (Portable Network Graphics) is an image file format designed to store raster graphics. It is associated with ".png" file extension. Use this tag for questions involving this specific format.

PNG was created to improve upon and replace (Graphics Interchange Format) as a losslessly compressed image file format not requiring a patent license.

PNG supports palette-based images with transparency, true colour images with or without alpha channel (RGB, RGBA), and grayscale images; PNG supports channel depths from 1-bit to 16-bit per channel. Interlacing, which allows the progressive display of partially downloaded images, is implemented via the Adam7 algorithm. Animation is supported by way of the extension.

More information

6735 questions
124
votes
4 answers

Merging png images into one pdf file

How can I merge several .png files into one PDF file in Unix?
twidizle
  • 1,495
  • 2
  • 13
  • 16
116
votes
6 answers

MIME type warning in chrome for png images

Just ran my site in chrome and suprisingly it comes up with this warning for each of my .png images: Resource interpreted as image but transferred with MIME type application/octet-stream. Anyone seen this before? Regards
Muleskinner
  • 14,150
  • 19
  • 58
  • 79
115
votes
6 answers

Converting SVG to PNG using C#

I've been trying to convert SVG images to PNG using C#, without having to write too much code. Can anyone recommend a library or example code for doing this?
harriyott
  • 10,505
  • 10
  • 64
  • 103
112
votes
11 answers

Can PNG image transparency be preserved when using PHP's GDlib imagecopyresampled?

The following PHP code snippet uses GD to resize a browser-uploaded PNG to 128x128. It works great, except that the transparent areas in the original image are being replaced with a solid color- black in my case. Even though imagesavealpha is set,…
Cheekysoft
  • 35,194
  • 20
  • 73
  • 86
111
votes
2 answers

Base64 PNG data to HTML5 canvas

I want to load a PNG image encoded in Base64 to canvas element. I have this code: