Questions tagged [libpng]

libpng is the official PNG reference library, supporting most all of PNG's features, is extensible, and has been widely used and tested for over twenty years.

libpng is the official PNG reference library, that allows you to read, manipulate and write .png datastreams. It supports almost all PNG features, is extensible, and has been extensively tested for over twenty years.

libpng is a platform-independent library containing ANSI C (C89) source code. It requires zlib 1.0.4 or later (1.2.8 or later recommended) to be used.

For more information, visit the libpng website, sourceforge.io page where the source is available, the libpng manual or the Wikipedia page.

579 questions
7
votes
4 answers

Revert XCode compression with pngcrush on windows?

I have some png images extracted from IPA files and I want to get the original PNG back, I was advised that pngcush did the task required so I downloaded it and tried running the following command: pngcrush -fix icon.png icon1.png But I get a…
David Conde
  • 4,496
  • 2
  • 32
  • 48
7
votes
2 answers

Need help installing python package autopy on mac os x - difficulty with libpng and png.h

I was wondering if anyone could help me figure this out. When i try to python setup.py build (or pip install, or easy_install), this happens the gist is src/png_io.c:3:17: error: png.h: No such file or directory src/png_io.c: In function…
Pat B
  • 514
  • 1
  • 5
  • 14
7
votes
2 answers

cmake hierarchy zlib, libpng and my own app

I'm trying to create a CMake hierarchy for an application that uses libpng. Libpng requires zlib. Since a CMakeLists.txt is distributed with both zlib and libpng my first idea was to make the following structure: /development CMakeLists.txt …
Daniel Dekkers
  • 239
  • 4
  • 11
7
votes
1 answer

libpng error: CgBI: unhandled critical chunk xcode 7.3

After switching to Xcode 7.3, and running the project on the same, I got following error- libpng error: CgBI: unhandled critical chunk I have set Compress PNG Files in build setting of the projects target to NO. I cleaned and rebuild the project,…
Sanjay Mohnani
  • 5,644
  • 28
  • 43
7
votes
3 answers

Error with homebrew + opencv + libpng

On Mac OS Maverick I have installed OpenCV with a brew install opencv. I created a simple program (copied from this tutorial). Compilation worked fine but when running the executable I get the following error: dyld: Library not loaded:…
sdabet
  • 17,379
  • 11
  • 73
  • 143
7
votes
2 answers

libpng not linked on Mac OSX 10.9.2

I installed matrix2png on my Mac and had used it without problem before last week when I installed another image manipulating tool "circos". Circos requires me to install a different version of libpng, and I did. After that, I am no longer able to…
TonyGW
  • 15,511
  • 38
  • 93
  • 165
7
votes
2 answers

fast encode bitmap buffer to png using libpng

My objective is to convert a 32-bit bitmap(BGRA) buffer into png image in real-time using C/C++. To achieve it, i used libpng library to convert bitmap buffer and then write into a png file. However it seemed to take huge time (~5 secs) to execute…
7
votes
3 answers

libpng "png_set_longjmp_fn" not found

I'm using libpng from ubuntu and when I try to compile a c++ file I get undefined reference to `png_set_longjmp_fn' I'm using libpng version 1.6.8 If you are interested in reading the code please let me know, but I do not this has to do with my bad…
foothill
  • 383
  • 3
  • 7
  • 18
7
votes
2 answers

cmake - CMakeLists.txt is not in root folder (but is included in source)

I'm trying to compile a libpng library. The thing is that I need a specific version of this library - 1.2.37 - because the project I'm using it in is written with this version. I've found the source code of this version here (GnuWin32 project). But…
dvdkouril
  • 73
  • 1
  • 1
  • 4
7
votes
1 answer

UnsatisfiedLinkError In Android 4.4 libDevil cannot locate symbol "png_set_longjmp_fn"

I have an image converter app on google play that runs fine and well, it incorporates NDK for support of more file formats using the DevIL Image Processing library. It wokrs fine on most devices but since Android 4.4 Kitkat came out, i've received…
Asiimwe
  • 2,039
  • 5
  • 22
  • 36
7
votes
2 answers

Iphone - device - linker error

I have added libpng to my application. If I build for simulator, everything is OK. When I build application for device, I got linker error: Undefined symbols for architecture armv7: "_png_init_filter_functions_neon", referenced from:…
Martin Perry
  • 8,432
  • 7
  • 41
  • 94
7
votes
2 answers

Libpng, Palette png with alpha or not?

How to know if palette png is with alpha or not? I get information about the image png_get_IHDR After that i look at color_type - PNG_COLOR_TYPE_PALETTE But i can't find how to know if this png image has alpha channel or not.
B.S.
  • 21,170
  • 14
  • 82
  • 108
7
votes
2 answers

libpng warning: interlace handling should be turned on when using png_read_image in Python/PyGame

I'm using PyGame for Python, and have been receiving the following warning when loading .png images with pygame.image.load: libpng warning: Interlace handling should be turned on when using png_read_image It doesn't affect the program, but has…
Julian Laval
  • 1,050
  • 4
  • 14
  • 32
7
votes
2 answers

libpng 1.5.10 error: dereferencing pointer to incomplete type

png_read_info (png_ptr, info_ptr); { png_byte color_type = info_ptr->color_type; png_byte bit_depth = info_ptr->bit_depth; ... For last 2 lines I get error: dereferencing pointer to incomplete type What's wrong? In libpng 1.4 this…
askovpen
  • 2,248
  • 19
  • 37
6
votes
1 answer

libpng png_set_add_alpha | png_set_filler error: sequential row overflow

I'm trying to read a PNG file with C for use with OpenCL. OpenCL has no support for 24-bit RGB images so I need to expand the data from RGB to RGBA. The PNGs I am using are all 24-bit so that headache can be avoided. I have attempted to use…
1 2
3
38 39