pnggroup / libpng

LIBPNG: Portable Network Graphics support, official libpng repository
http://libpng.sf.net
Other
1.29k stars 626 forks source link

Using pngcp, why is the output file empty? #298

Open tangyaofang opened 5 years ago

tangyaofang commented 5 years ago

Execute the following command: ./pngcp fried_rice.png test.png

However, the output file test.png is an empty file.

root@KWE1000859128:/home/test/libpng-1.6.37# ls -lt *.png
-rw-r--r-- 1 root root     0 Jun 12 17:17 test.png
-rw-r--r-- 1 root root 60716 Jun 12 16:01 fried_rice.png

According to the instructions of pngcp, the contents of fried_rice.png should be output to the test.png file.

fried_rice.png attach file: fried_rice.zip

jbowler commented 10 months ago

I can't repro this:

git checkout v1.6.37
git clean -dfx
mkdir ../v1.6.37
cd !$
make all
gcc -O2 -o pngcp ../git/contrib/tools/pngcp.c libpng16.so.16 -lz
./pngcp fried_rice.png test.png

There's not enough information above; a detailed repro is required.

jbowler commented 2 months ago

@ctruta: please close, not repro