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.

613 questions
12
votes
3 answers

How to install libpng correctly?

I am trying to access png pixel data in my C code on. I found this library libpng. I downloaded latest version from this site, I am using Ubuntu 14.04. I followed the instructions in the INSTALL file. Everything went well. And then I tried to…
Michal Krakovsky
  • 795
  • 3
  • 7
  • 17
12
votes
6 answers

matplotlib and libpng issues with ipython notebook

I was trying to use ipython notebook . I installed all the dependency libraries. However, I cannot use either the "--pylab=inline" option when launching ipython or "savefig" function in the Ipython console. When I tried to do either of them, an…
user1894353
  • 121
  • 1
  • 1
  • 4
11
votes
3 answers

Rendering waveform in PHP - How to produce a more compressed render?

I am rendering a waveform in PHP by downsampling it with the lame encoder and then drawing the waveform from the resulting data points. I am currently getting images like this: What I would like to do is modify my code so that the apparent dynamic…
gordyr
  • 6,078
  • 14
  • 65
  • 123
11
votes
2 answers

Android: Removing OpenCV older version will resolve Libpng Vulnerability warning?

I got an email from Google play store regarding - "Google Play warning: You are using a vulnerable version of libpng". Email contains the below information - https://support.google.com/faqs/answer/7011127 I didn't use libpng library in my…
SKK
  • 1,705
  • 3
  • 28
  • 50
11
votes
1 answer

libpng load file from memory buffer

I tried looking through the libpng documentation, but didn't find what I was looking for. I have a PNG file fully in a memory buffer, how can I load this file (apart from the obvious solution of creating a temporary file)? Not sure if it's relevant,…
orlp
  • 112,504
  • 36
  • 218
  • 315
11
votes
1 answer

Adding libpng in android ndk project

I've searched a lot of topics about linking libpng to my android ndk project but I've found right answer for my problem and I hope somebody will help me. This is hierarchy of my project: jni…
Misha Ponomarev
  • 111
  • 1
  • 1
  • 3
11
votes
2 answers

Parallelization of PNG file creation with C++, libpng and OpenMP

I am currently trying to implement a PNG encoder in C++ based on libpng that uses OpenMP to speed up the compression process. The tool is already able to generate PNG files from various image formats. I uploaded the complete source code to…
Pascal
  • 1,249
  • 1
  • 10
  • 21
10
votes
2 answers

Runtime error on Windows when trying to load image with libpng

I am using pHash and that library uses libpng. I am having issues running my program because libpng fails loading a PNG file. Version of libpng: 1.4.19 Platform: Windows 10 Environment: Visual Studio 2015 Trivial Just if you came up with the…
Andry
  • 16,172
  • 27
  • 138
  • 246
10
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,947
  • 30
  • 46
10
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,210
  • 4
  • 17
  • 34
9
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
  • 269
  • 4
  • 11
9
votes
2 answers

libpng error: Not a PNG file

I have tried several times to upgrade Android Studio build tools past 1.3.1, but I always end up with this libpng error. I solved one of the errors by completely removing a maven dependency (since the gradle console pointed to exactly where the…
9
votes
3 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
  • 9,232
  • 8
  • 46
  • 114
8
votes
1 answer

Linker error with libpng under MacOSX

I'm working on MacOSX 10.7.2 and Xcode 4.2.1. I installed libpng using port and I was trying to load a PNG image in my application, but I get linker errors: Undefined symbols for architecture x86_64: "_png_create_read_struct", referenced from: …
Manlio
  • 10,768
  • 9
  • 50
  • 79
8
votes
1 answer

Linking libraries with incompatible dependecies

I'm working on a C++ project that needs two third party libraries (libfoo.so and libbar.so). My operating system is Linux. libfoo.so is dynamically linked to libpng14.so.14 (1.4.8) (EDIT 1) libbar.so seems to be statically linked to an unknwon…
Alessandro Pezzato
  • 8,603
  • 5
  • 45
  • 63
1
2
3
40 41