summaryrefslogtreecommitdiff
path: root/graphics/pngcrush
AgeCommit message (Collapse)AuthorFilesLines
2012-10-06Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.asau1-3/+1
2012-10-03Changes 1.7.38:adam2-6/+6
* Bail out of a trial if byte count exceeds best byte count so far. * Added -bail and -nobail options. Use -nobail to get a complete report of filesizes. * Added -blacken option, to enable changing the color samples of any fully-transparent pixels to zero in PNG files with color-type 4 or 6, potentially improving their compressibility.
2012-09-03Version 1.7.37:adam2-6/+6
Reverted pngcrush.c back to 1.7.35 and fixed the bug with PLTE handling. Version 1.7.36: Reverted pngcrush.c to version 1.7.34 because pngcrush is failing with some paletted PNGs. Separated CFLAGS and CPPFLAGS in the makefile (with "-I" and "-DZ_SOLO" in CPPFLAGS)
2012-08-01Changes 1.7.35:adam2-6/+6
* Removed FOPEN of fpout except for the last trial. The open files caused "pngcrush -brute -e _ext.png *.png" to fail on the 10th file (about the 1024th compression trial) due to being unable to open the output file.
2012-07-28Changes 1.7.34:adam2-6/+6
* Compute and report sum of critical chunk lengths IHDR, PLTE, IDAT, and IEND, plus the 8-byte PNG signature instead of just the total IDAT data length. Simplify finding the lengths from the trial compressions, by replacing the write function with one that simply counts the bytes that would have been written to a trial PNG, instead of actually writing a PNG, reading it back, and counting the IDAT bytes. The savings, while measurable, are not very significant -- The "-brute" and default pngcrush runs that I tried are between one and five percent faster. Most of the time is expended in zlib compression of the IDATs, which is not affected by the change. * Removed comments about the system library having to be libpng14 or earlier. This restriction was fixed in version 1.7.20.
2012-07-25Changes 1.7.33:adam2-6/+6
* Ignore all ancillary chunks except during the final trial. This can be significantly faster when large ancillary chunks such as iCCP are present. Changes 1.7.32: * Fixed bug introduced in 1.7.30: Do not call png_set_check_for_invalid_index() when nosave != 0 (otherwise pngcrush crashes with the "-n" option).
2012-07-03Changes 1.7.31:adam2-6/+6
* Dropped *.tar.bz2 from distribution. * Added a comma that was missing from one of the "usage" strings (error introduced in version 1.7.29). Changes 1.7.30: * Only run the new (in libpng-1.5.10) test of palette indexes during the first trial.
2012-06-11Changes 1.7.29:adam3-8/+10
* Set "things_have_changed" flag when adding text chunks, so the "-force" option is no longer necessary when adding text to an already-compressed file. * Direct usage message and error messages to stderr instead of stdout. If anyone is still using DOS they may have to change the "if 0" at line 990 to "if 1". * Added "pngcrush -n -v files.png" to the usage message.
2012-05-25Changes 1.7.28:adam2-7/+7
* Write proper copyright year for zlib, depending upon ZLIB_VERNUM Changes 1.7.27: * Increased row_buf malloc to row_bytes+64 instead of row_bytes+16, to match the size of big_row_buf in pngrutil.c (it is 48 in libpng14, 15, 16, and 64 in libpng10, 12. Otherwise there is a double-free crash when the row_buf is destroyed. Changes 1.7.26: * Increased the text_text buffer from 2048 to 10*2048 (Ralph Giles), and changed an incorrect test for keyword length "< 180" to "< 80". The text_text buffer was inadvertently reduced from 20480 to 2048 in pngcrush-1.7.9. * Added -DZ_SOLO to CFLAGS, needed to compile zlib-1.2.6. * Changed user limits to width and height max 500000, malloc max 2MB, cache max 500. * Added -nolimits option which sets the user limits to the default unlimited values.
2012-03-07png-license is just a zlib with many authors. Use zlib here (as alreadywiz1-2/+2
done in png package).
2012-02-20Changes 1.7.25:adam2-6/+6
* built with libpng-1.5.9 and zlib-1.2.5
2012-01-12Changes 1.7.24:adam2-6/+6
* Do not append a slash to the directory name if it already has one. Changes 1.7.23: * Ignore any attempt to use "-ow" with the "-d" or "-e" options, with warning. * Include zlib.h if ZLIB_H is not defined (instead of checking the libpng version; see entry below for pngcrush-1.7.14), and include string.h if _STRING_H_ is not defined (because libpng-1.6 does not include string.h) * Define SLASH = backslash on Windows platforms so the "-d" option will work.
2011-12-09Changes 1.7.22:adam2-6/+6
This release adds the "-ow" option to overwrite the input file with the compressed file. If an output filename is given on the command line, it will be used as a temporary file and removed after compression. If not, "pngout.png" is used as a temporary file
2011-11-15Changes 1.7.21:adam2-6/+6
* Defined TOO_FAR=32767 in Makefile (instead of in pngcrush.h)
2011-10-14Changes 1.7.20:adam3-23/+20
* Removed the call to png_read_transform_info() when the system libpng is being used, so it can be built with a system libpng. Changes 1.7.19: * pngcrush-1.7.18 failed to read interlaced PNGs. Reverted the change from calling png_read_transform_info() to png_read_update_info(). Since png_read_transform_info() is not exported we again cannot build with the system libpng15. Changes 1.7.18: * This version will work with either a "system" libpng14 or libpng15, or with the embedded libpng15. The deprecated usage of libpng png_struct members and unexported functions has been removed. * Revised the format of the time report (all on one line so you can get a nice compact report by piping the output to "grep coding").
2011-10-04Changes 1.7.17:adam2-6/+6
* Changed "#if !defined(PNG_NO_STDIO)" to "#ifdef PNG_STDIO_SUPPORTED" as recommended in the libpng documentation. * Added PNG_UINT_32_NAME macro and used it to simplify chunk_type integer definitions.
2011-07-15Changes 1.7.16:adam2-6/+6
* Only report best method==0 if pngcrush cannot match the input filesize. Otherwise, if there is no improvement, report the first matching method.
2011-05-17Added LICENSE; do not depend on pngadam1-2/+3
2011-03-23Changes 1.7.15:adam2-6/+6
* Force bit_depth to 1, 2, or 4 when -plte_len is <=2, <=4, or <=16 and the -bit_depth option is not present, to avoid writing invalid palette indexes.
2011-01-28Changes 1.7.14:adam3-11/+42
* Built with libpng-1.5.1beta06 and zlib-1.2.5 * Removed WIN32_WCE support (libpng has dropped it already) * Include zlib.h and define png_memcpy, etc., and revise the png_get_iCCP() and png_set_iCCP() calls to be able to build with bundled libpng-1.5.x. Pngcrush cannot be built yet with a system libpng-1.5.x.
2011-01-13png shlib name changed for png>=1.5.0, so bump PKGREVISIONs.wiz1-1/+2
2010-12-13Changes 1.7.13:adam2-7/+7
(built with libpng-1.4.5 and zlib-1.2.5)
2010-10-16Changes 1.7.12:adam2-7/+7
Built with libpng-1.4.4 and zlib-1.2.5.
2010-07-19Changes 1.7.11:adam2-8/+7
(built with libpng-1.4.2 and zlib-1.2.5)
2010-06-13Bump PKGREVISION for libpng shlib name change.wiz1-1/+2
Also add some patches to remove use of deprecated symbols and fix other problems when looking for or compiling against libpng-1.4.x.
2010-04-18Changes 1.7.10:adam2-7/+7
* Added missing "(...)" in png_get_uint_32(). * Only compile png_get_uint_32(), etc., when PNG_LIBPNG_VER < 1.2.9 * Revised help info for "-zitxt". Changes 1.7.9: * Defined TOO_FAR == 32767 in pngcrush.h (instead of in deflate.c) * Revised the "nolib" Makefiles to remove reference to gzio.c and pnggccrd.c Changes 1.7.8: * Removed gzio.c Changes 1.7.7: * Updated bundled libpng to version 1.4.0. * Check the "-plte_len n" option for out-of-range value of n. * Changed local variable "write" to "z_write" in inffast.c (zlib-1.2.3.4) to avoid shadowed declaration warning. Changes 1.7.6: * Change some "if defined(X)" to "ifdef X" according to libpng coding style. * Added some defines to suppress pedantic warnings from libpng-1.2.41beta15 and later. A warning about deprecated access to png_ptr->zstream is otherwise unavoidable. When building the embedded libpng, a warning about png_default_error() returning is also otherwise unavoidable. * Write premultiplied alpha if output extension is .ppng and PNG_READ_PREMULTIPLIED_ALPHA_SUPPORTED is set (needs libpng-1.5.0). * Check the "-m method" option for out-of-range method value. Changes 1.7.4: * Use unmodified pngconf.h from libpng-1.2.41beta05 or later.
2009-10-11Changes 1.7.3:adam2-7/+7
* Print contents of text chunks after IDAT, even when the -n option is used.
2009-09-11Changes 1.7.2:adam2-7/+7
* Added check for "verbose" on some printf statements.
2009-08-30Changes 1.7.1:adam2-7/+7
* Revised some prototypes to eliminate "Shadowed Declaration" warnings. * Moved warning about discarding APNG chunks to the end. * Replaced *.tar.lzma with *.tar.xz in the distribution.
2009-07-21Changes 1.7.0:adam2-7/+7
* Save (but do not recompress) APNG chunks if the output file has the ".apng" extension and the color_type and bit_depth are not changed. Changes 1.6.20: * Changed local variable "write" to "wwrite" in inffast.c (zlib) to avoid shadowed declaration warning.
2009-06-08Changes 1.6.19:adam2-7/+7
* Added missing curly braces that caused erroneous png_error message about "original PNG could not be recovered" in pngcrush-1.6.17 and 18.
2009-05-14Changes 1.6.17:adam2-7/+7
* Defined TOO_FAR == 32767 in deflate.c (again). The definition has continually been inadvertently omitted during zlib updates since pngcrush version 1.6.4. * Revised handling of xcode files so at least we can get printout of IHDR values with "pngcrush -fix -n -v xcode.png" Changes 1.6.16: * Added -newtimestamp and -oldtimestamp options and changed default condition to timestamping the output file with the current time (i.e., -newtimestamp is default) * If the -oldtimestamp option is used then the output file has the same timestamp as the input file. * Added CgBI chunk detection. Changes 1.6.15: * Fixes some missing typecasts on png_malloc() calls, patch from an anonymous reporter to the SourceForge bug tracker. * Added -time_stamp option to change time stamping from default condition.
2009-02-20Changes 1.6.14:adam2-7/+7
* Built with libpng 1.2.35
2009-01-08Changes 1.6.13:adam2-7/+7
* Added "-time_stamp" directive, to cause pngcrush to write a new timestamp on the output file instead of replicating the timestame from the input file.
2009-01-03Changes 1.6.12:adam3-70/+7
* Eliminated a memory leak in libpng with writing bad tEXt chunks.
2008-10-26Changes 1.6.10:adam3-12/+21
* Add sTER chunk support. Changes 1.6.9: * Updated cexcept.h to version 2.0.1 * Add missing curly brackets. Changes 1.6.8: * Fixed bug with handling of -z and -zi options.
2008-07-18Changes 1.6.7:adam3-13/+13
Moved PNG_UINT_CHNK and some other defines from pngcrush.h to pngcrush.c Reject invalid color_type or bit_depth. Changes 1.6.6: Added dSIG support. Pngcrush will not rewrite an image containing a dSIG chunk immediately following the IHDR chunk, unless the dSIG is explicitly removed with "-rem dSIG" or explicitly kept with "-keep dSIG". In the latter case the saved dSIG chunks will become invalid if any changes are made to the datastream. Fixed bug in writing unknown chunks from the end_info_ptr. Changes 1.6.5: Discontinued adding a new gAMA chunk when writing sRGB chunk.
2008-03-22Added LDFLAGS, which is sometimes neededadam1-2/+2
2008-03-04Mechanical changes to add DESTDIR support to packages that installjlam1-2/+4
their files via a custom do-install target.
2006-07-06Fix building on Darwinadam3-3/+57
2006-06-10Changes 1.6.4:adam3-25/+7
* Fixed bug in handling of undocumented -trns_a option. * Fixed bug with "nosave" handling of unknown chunks.
2006-04-19Update to 1.6.3, and fix build after png-1.2.9nb2 update:wiz3-32/+23
Version 1.6.3 (built with libpng-1.2.9beta11 and zlib-1.2.3) Fixed documentation of iTXt input (Shlomi Tal). Removed #define PNG_INTERNAL and provided prototypes for some internal libpng functions that are duplicated in pngcrush.c
2006-04-17Bump BUILDLINK_ABI_DEPENDS.png and PKGREVISION for png-1.2.9nb2 update.wiz1-1/+2
2006-02-18Distinfo fixadam1-4/+4
2006-02-18Changes 1.6.2:adam4-21/+17
* Fixed bug with "PNG_ROWBYTES" usage, introduced in version 1.6.1. The bug could cause a crash and only affects the "nolib" builds. * Converted C++ style (// ...) comments to C style (/* ... */). * Defined TOO_FAR == 32767 in deflate.c (again). The definition was omitted from version 1.6.0 when zlib was upgraded to version 1.2.3. Changes 1.6.1: * Copied non-exported libpng functions from libpng into pngcrush, to make pngcrush play more nicely with shared libpng. These are ifdef'ed out when a static library is being built with the bundled libpng and pngcrush.h is included. Changes 1.6.0: * Moved ChangeLog out of pngcrush.c comments and into a separate file. * Filtered pngcrush.c through "indent -kr" and "expand" for readability. * Moved 550 lines of usage/help/copyright/license/version info to separate function(s) and cleaned up significantly. * Added some comments for ease of navigation and readability. * Stripped out a bunch of ancient-libpng compatibility stuff. * Defined PNG_UINT_* macros (pngcrush.h for now). * Fixed unknown-chunk handling ("-rem alla" and "-rem gifx" now work). * Created modified version of makefile that supports external zlib. * Added support for methods using Z_RLE zlib strategy (zlib 1.2.x only). * Documented -huffman option in usage screen. * Added IDAT statistics to final per-file summary. * Added utime() support to give output files same timestamps as input files.
2005-06-16Create directories before installing files into them.jlam1-1/+2
2005-04-11Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.tv1-2/+1
2005-02-24Add RMD160 digestsagc1-1/+2
2004-11-13USE_BUILDLINK3 is a yes/no variable.jlam1-2/+2
2004-10-03Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10tv1-1/+2
in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.