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
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,680
  • 3
  • 27
  • 48
11
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
  • 755
  • 3
  • 7
  • 16
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
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
  • 111
  • 1
  • 1
  • 4
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
  • 14,281
  • 23
  • 124
  • 216
10
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,079
  • 1
  • 8
  • 21
9
votes
2 answers

16 bit grayscale png

I'm trying to write (using libpng) an 16-bit grayscale image where each point color equals to sum of its coordinates. The following code should produce a 16-bit PNG, but instead produces 8-bit like this. Why? #include #include…
Yagg
  • 95
  • 1
  • 1
  • 3
9
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
  • 7,820
  • 5
  • 39
  • 59
9
votes
3 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…
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,328
  • 9
  • 44
  • 76
8
votes
2 answers

Emulator for Tizen Studio requires old libpng12-0

I am about to install the Tizen Studio, and I also need the Emulators for Wear and Device. But unfortunately it requires libpng12-0 , whereas I have installed libpng16-16 already.. How can I tell Tizen Installer, it already has the last recent…
Ralf Wickum
  • 1,300
  • 5
  • 34
  • 66
8
votes
2 answers

Security alert about libpng in my google play console

I received a security alert in my google play console about 2 applications ( games made by buildbox ) , the alert said that my application uses a version of libpng which presents a security flaw , I can't find this lib in my project , any solution…
Med Anis
  • 267
  • 3
  • 19
8
votes
1 answer

Save OpenGL screen pixels to PNG using libpng

I've been using SOIL to save images as BMP, but it turns out that SOIL (or stbi to be more specific) saves ~5MB images (which is about 1366x768 resolution image or more) which is quite insane. Original BMP saving code (NOTE Everything is done in the…
user1551592
8
votes
2 answers

GraphicsMagick CgBI unknown critical chunk

I am using GraphicsMagick and currently running into the following issue: when executing gm identify .png I'm getting the following error: gm identify: CgBI: unknown critical chunk (.png) gm identify: Request did not return an…
bknopper
  • 1,115
  • 11
  • 27
8
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
  • 98,226
  • 29
  • 187
  • 285
1
2
3
38 39