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

Someone explain why this isn't filling in the square

It's just making a red line along the top and left edge and I don't understand why. Shouldn't the nested for loops iterate through every possible x,y coordinate? function createSquare() { var height = 50; var width = 50; var img = new…
user736893
0
votes
1 answer

Why Memory allocation failed whe HPDF_LoadPngImageFromFile using libhpdf?

I got a exception ERROR: error_no=1015, detail_no=0 using HPDF_LoadPngImageFromFile to load a png file with a jpeg file extention.I have libpng and libpng-dev installed. I can not figure out why this exception occurs. Anyone help me? Thanks.
Treper
  • 3,539
  • 2
  • 26
  • 48
-1
votes
1 answer

How to use libpng in CodeBlocks on Windows?

I have managed to install (I think) it with the setup provided by their website, but I have no idea what to do next. It created a folder called GnuWin32 in Program Files (x86) but it doesn't seem to do anything.
-1
votes
1 answer

AppVeyor c++ cmake PNG package compilation error

I am trying to compile a cross platform QT Application for windows via AppVeyor with cmake. Under Linux the cmake compiles just fine, so the CMakeLists.txt should be valid. AppVeyor compiles a necessary library, which works, too. But when it comes…
zebastian
  • 1
  • 1
-1
votes
1 answer

matrix2png installation in MAC OSX and libpng-1.6.17

I'm trying to install matrix2png. So, I have installed libpng using Homebrew. But, when I type ./configure to install matrix2png, the following error message comes up: You need to have libpng installed and findable by the configure script Please…
se2se2
  • 1
-1
votes
1 answer

can not open input file libpng15-vc9.lib

I am setting up my GDAL 1.8.0 Project in Visual Studio 2010 Windows, I am on way to add libpng to project. My libpng release libs are under following folder... They are successfully built with zlib in this folder, as you can see there are no files…
prem30488
  • 2,828
  • 2
  • 25
  • 57
-1
votes
1 answer

libpng error: IDAT: invalid distance too far back in MAC OSX 10.9

I've installed opencv2.4.9 with libstdc++ through brew install opencv in MAC OSX 10.9. I try to imread an image from INRIA pedestrian database. The problem is that when I use opencv to read the PNG format image, I always get this error: libpng…
coldmoon
  • 33
  • 1
  • 6
-1
votes
1 answer

libpng error undefined symbol png_read_image in unix

libpng error undefined symbol png_read_image in unix i'm developing a program with C language in unix sco open server 5.0.7 and now, i need to use libpng in my project to load a png file when i include in my code (png.h and code are in same…
Farrokh
  • 1,167
  • 1
  • 7
  • 18
-1
votes
1 answer

Converting bmp to png - Access violation writing location

How to convert bmp to png properly? I was using this code: #define WIN32_LEAN_AND_MEAN #define _CRT_SECURE_NO_DEPRECATE #include #include #include #include void GetDesktopResolution(int& horizontal, int&…
user3471387
  • 427
  • 3
  • 8
  • 10
-1
votes
2 answers

undefined reference to `png_read_info'

Im trying to compile source code, but receive: undefined reference topng_read_info' File header: #include "PngImage.hh" #include #include #include #include My compiler settings: …
native1989
  • 95
  • 3
  • 10
-2
votes
1 answer

Segmentation fault (core dumped) error, when use boundary fill algorithm in C

when i use boundary fill algorith(in C) i have an Segmentation fault (core dumped) error. Do you know why it doesnt work? void boundaryFill(int x, int y, png_byte cr, png_byte cg, png_byte cb, png_byte cfr, png_byte cfg, png_byte cfb) { …
-2
votes
3 answers

How should I use libpng library to convert RGBA bitmap into PNG and PNG back to RGBA bitmap

I try to use libpng library, and I encounter problem with it. I am using CLion now, and try to include this libpng library in my project. The problem is rather with configuration of this library to use it in my project than using this library. I…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
-4
votes
1 answer

Loading png image texture from char array or QByteArray with libpng

I have the image data as QByteArray. I want to load the texture of this image from that data using libpng. Everywhere I see reading the image texture from the file or from input stream. But how can I load the image from the QByteArray?? Thanks.
Tahlil
  • 2,680
  • 6
  • 43
  • 84
1 2 3
40
41