Forum archive
pngout /v and redirection
- Hello Ken,
I am writing on a script which tries to use every trick (well except the randomized huffman option) which png compression offers.
In order to get the number of blocks used by pngout with the default /b256 I run pngout with /v and redirect it to a logfile. Unfortunately, there are some IDAT information displayed which are not redirected and screw up my console.
c:\>pngout /v BASI0G01.PNG > log
Name Offset Length CRC
Required chunk: IHDR 00000010 0000000d 2c0677cf
Remove chunk: gAMA 00000029 00000004 31e8965f
Required chunk: IDAT 00000039 00000087 efca1053
Required chunk: IEND 000000cc 00000000 ae426082
Is there any other way to get the number of blocks?
Thank you! Unfortunately, there are some IDAT information displayed which are not redirected and screw up my console.
Thanks for the tip. I fixed that bug and updated my site. I made a few other changes to PNGOUT since the last version. I updated KZIP as well, although it looks like I didn't change anything in the PC version. Anyway, here's a changelog:08/19/2006: PNGOUT: Improved error handling of: /kbKGD && /d1,2,4 && /c0,3
09/01/2006: PNGOUT: Now autodetects non-PNGOUT PNG files more intelligently
09/01/2006: PNGOUT: Redesigned display - uses less space now
09/09/2006: PNGOUT: Fixed auto /bKGD bug
09/17/2006: KZIP: -r (recursive subdirectories) now works on Unix-based systems
10/11/2006: PNGOUT: All verbose output is now redirected to stdoutIs there any other way to get the number of blocks?
No, not in PNGOUT. If you want a utility that simply displays the number of blocks, you'll have to write it yourself. An easy way to do that would be to take my KPLIB.C (a recent version is included with POLY2VOX), and simply print "numhufblocks" after using kpzload() to load the image.- The September 23, 2006 version of kzip still fails when I try 'kzip -r' on my Linux box. It seems to work if I add a trailing slash to the directory name, but then the Windows version fails in the opposite way (doesn't work with a trailing slash, works fine without). Can you fix this? I don't want to have to detect the current platform just to append the slash when running on anything but Windows in order to get the MakeDistributions makefile from JFBuild/JFDuke3D/JFSW to work on both platforms.