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
3
votes
1 answer

PHP GD creates a PNG file and fails when I try to use imagefronpng() on that same file

I am using PHP GD library to proccess some images in order to create a meme generator. I've never worked with image processing before, in any language. First I take an image uploaded trhough POST and resize it with GD, according to max width and…
Pankas
  • 127
  • 2
  • 12
3
votes
1 answer

Merge two pngs via command line tool in windows?

I'm looking for a tool I can use via command line (windows 7) to merge two equally sized pngs. I'm not having much luck with search so far as most tools I've seen are pretty heavy applications which don't seem to target simple manipulations. I want…
Shane
  • 4,921
  • 5
  • 37
  • 53
3
votes
1 answer

Obtain text fields from a png file

Nothing seems to work so far. I got to see with pnginfo the following message: concept_Sjet_dream6.png... Image Width: 200 Image Length: 240 Bitdepth (Bits/Sample): 8 Channels (Samples/Pixel): 2 Pixel depth (Pixel Depth): 16 Colour Type…
Trylks
  • 1,458
  • 2
  • 18
  • 31
3
votes
1 answer

Get image dimensions from base64 string

I receive base64 string of an image and use it as source for in html page. In turn, img is a child of div. I want to get div automatically resized by the image dimensions. Tried to get dimensions of an image using javascript (... =…
Sergey
  • 1,168
  • 2
  • 13
  • 28
3
votes
3 answers

Compressing huge png file to use in iphone game

I have a background file that I wish to use in an iphone game which is currently 40mb. It is a .png file and I would like to compress it to the smallest size possible without losing much quality AND without losing the alpha channel. I have…
Fitzy
  • 1,871
  • 6
  • 23
  • 40
3
votes
1 answer

Setting png++ to work

I am trying to compile some basic example of loading/writing a .png image using png++ (which is a c++ wrapper for libpng. It is quite important for me to use png++ and not an alternative. As prerequisites png++ needs both libpng which I have…
valentin
  • 1,103
  • 2
  • 16
  • 36
3
votes
2 answers

Python Buffer of PNG Image

I'm working with the Indigo library for a web based chemistry project. Long story short, they wrote a nice Python interface for it, which I'm using through CGI. There are several output formats, SVG and PNG being included. I'm not a Python pro, so…
Jacob Schaer
  • 727
  • 1
  • 9
  • 14
2
votes
2 answers

Android 9-patch images don't stretch correctly

I have the exact same problem as this guy, only the solutions proposed don't work for me. my 9 Patch Image stopped working In eclipse, my 9-patches look as they should, but when running the app on my device, they stretch like a normal png-image. I…
Tore Rudberg
  • 1,594
  • 15
  • 16
2
votes
1 answer

How I make a logo and actionBar transparent?

I am using a .png for both my logo and action Bar menu items. I am using the android.Holo.light theme. Even though I've made the background transparent for both the logo and the menu items, a grey shaded area is still showing behind the .png. How…
Fabii
  • 3,820
  • 14
  • 51
  • 92
2
votes
2 answers

Java : How to tint this PNG programmatically?

Within the frame of a chess applet, I have a few sets of such greyscale/black & white (not sure) : Is there any way to give a color tint to a PNG picture via Java Code ? Tried to google the matter and didn't find anything really matching what I'm…
BuZz
  • 16,318
  • 31
  • 86
  • 141
2
votes
0 answers

Telerik asp.net Chart (svg) to png

I currently have a Telerik Chart component on my asp.net MVC page. The charts are displayed on the screen as SVG. I would like to output these SVGs as png. By output, I mean "download" these SVG to my machine as PNG.
Zwik
  • 646
  • 1
  • 9
  • 21
2
votes
2 answers

Semi Transparent PNG as Splash Screen

I'm trying to make a Splash Screen 4 an Win application. my setup: form border style is set to none. start position is screen center. background image of the form is set to a PNG file, with rounded edges and a "build in" drop shadow. In code I've…
Ace
  • 1,437
  • 6
  • 28
  • 46
2
votes
1 answer

PHP: Add a Transparent PNG to a JPEG with Opacity

This seems to be a common question, but trying all the combinations, I have found, it still is not working for me. My PNG watermark is transparent and I wish to overlay the original JPG with this watermark and add a 50% opacity to the watermark. The…
mcl
  • 691
  • 2
  • 10
  • 23
2
votes
1 answer

The resolution of pictures of IOS app

My current resolution of all the pictures (all of png format) in my app is 300, which I realized is too high, I heard that 72 ppi will be enough, but however I just wanna make the best vision effect of these pictures, so what is the best resolution…
Wang Liang
  • 941
  • 2
  • 15
  • 34
2
votes
1 answer

Which options to choose when exporting from Adobe Illustrator for .png for Android?

I am using Adobe Illustrator CS4 for creating images for launching icons to be used by Android applications. I create a set of images according to dev guide icon sizes for the ldpi, mdpi etc. The px is defined on the artboard but nothing about…
Vass
  • 2,682
  • 13
  • 41
  • 60
1 2 3
99
100