Commit graph

57 commits

Author SHA1 Message Date
adam
d9fb645d73 Changes 1.7.16:
* Only report best method==0 if pngcrush cannot match the input filesize.
  Otherwise, if there is no improvement, report the first matching method.
2011-07-15 09:29:06 +00:00
adam
83d1fdee2b Added LICENSE; do not depend on png 2011-05-17 07:23:46 +00:00
adam
2aa5b1320a Changes 1.7.15:
* 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-03-23 09:00:23 +00:00
adam
c0ee3b1330 Changes 1.7.14:
* 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-28 20:46:11 +00:00
wiz
af3596f984 png shlib name changed for png>=1.5.0, so bump PKGREVISIONs. 2011-01-13 13:36:05 +00:00
adam
3f8ef55218 Changes 1.7.13:
(built with libpng-1.4.5 and zlib-1.2.5)
2010-12-13 16:15:33 +00:00
adam
191beddff7 Changes 1.7.12:
Built with libpng-1.4.4 and zlib-1.2.5.
2010-10-16 10:06:18 +00:00
adam
00e792371c Changes 1.7.11:
(built with libpng-1.4.2 and zlib-1.2.5)
2010-07-19 13:01:58 +00:00
wiz
e8d8834f6a Bump PKGREVISION for libpng shlib name change.
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-06-13 22:43:46 +00:00
adam
b51b4e9959 Changes 1.7.10:
* 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.
2010-04-18 08:35:44 +00:00
adam
4b24b06420 Changes 1.7.3:
* Print contents of text chunks after IDAT, even when the -n option is used.
2009-10-11 08:07:23 +00:00
adam
ceccedb76e Changes 1.7.2:
* Added check for "verbose" on some printf statements.
2009-09-11 06:33:14 +00:00
adam
f24f692402 Changes 1.7.1:
* 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-08-30 14:03:51 +00:00
adam
2d6ee8e266 Changes 1.7.0:
* 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-07-21 06:40:36 +00:00
adam
8695560d0b Changes 1.6.19:
* 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-06-08 07:50:06 +00:00
adam
54ce085b3b Changes 1.6.17:
* 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-05-14 06:09:24 +00:00
adam
11e6edc324 Changes 1.6.14:
* Built with libpng 1.2.35
2009-02-20 06:01:29 +00:00
adam
1b2796448b Changes 1.6.13:
* 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-08 12:19:09 +00:00
adam
0dbb1a7f3a Changes 1.6.12:
* Eliminated a memory leak in libpng with writing bad tEXt chunks.
2009-01-03 19:36:43 +00:00
adam
ded3573f8c Changes 1.6.10:
* 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-10-26 09:19:16 +00:00
adam
889df4cae7 Changes 1.6.7:
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-07-18 08:41:19 +00:00
adam
3c93cadf74 Added LDFLAGS, which is sometimes needed 2008-03-22 08:48:17 +00:00
jlam
4b86e2bfab Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-04 15:39:09 +00:00
adam
1d98a76ebb Fix building on Darwin 2006-07-06 20:51:25 +00:00
adam
55f0d027a4 Changes 1.6.4:
* Fixed bug in handling of undocumented -trns_a option.
* Fixed bug with "nosave" handling of unknown chunks.
2006-06-10 07:43:11 +00:00
wiz
62ee7f884a Update to 1.6.3, and fix build after png-1.2.9nb2 update:
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-19 17:00:12 +00:00
wiz
02f8f7c52d Bump BUILDLINK_ABI_DEPENDS.png and PKGREVISION for png-1.2.9nb2 update. 2006-04-17 13:45:57 +00:00
adam
db7eb777fa Distinfo fix 2006-02-18 17:39:00 +00:00
adam
bb9c269507 Changes 1.6.2:
* 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.
2006-02-18 11:07:10 +00:00
jlam
81edaaa606 Create directories before installing files into them. 2005-06-16 06:57:37 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
agc
6a7b384635 Add RMD160 digests 2005-02-24 08:45:01 +00:00
jlam
5e5ac5cef9 USE_BUILDLINK3 is a yes/no variable. 2004-11-13 21:28:27 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
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.
2004-10-03 00:12:51 +00:00
kim
a5fa3f0182 Make this compile with png-1.2.6 2004-08-29 16:44:48 +00:00
wiz
4da06df884 Convert to bl3. 2004-04-24 00:51:09 +00:00
adam
00fd4981cf Now links dynamically with zlib and libpng 2004-01-12 21:23:05 +00:00
grant
0155927c43 s/netbsd.org/NetBSD.org/ 2003-07-17 21:41:05 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
wiz
301773b8c1 Update to 1.5.10:
* Fixed bug, introduced in 1.5.9, that caused defaults for method 0 to be
  used instead of copying the original image, when the original was already
  smallest.
* Work around CPU timer wraparound at 2G microseconds.
* Upgraded zlib from 1.1.3 to 1.1.4. Pngcrush is believed not to be
  vulnerable to the zlib-1.1.3 buffer-overflow bug.
* Choose the first instance of smallest IDAT instead of the last, for
  faster final recompression, suggested by TSamuel.
* Added -trns_a option for entering a tRNS array.
2002-08-31 00:01:53 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
rh
e9669dd997 Update pngcrush to 1.5.7. Changes include:
* Version 1.5.7 (built with libpng-1.2.0)
    * Added setargv.obj to Makefile.msc to expand wildcards, e.g., *.png
    * Use constant string "pngcrush" instead of argv[0] when appropriate.
    * Only check stats for infile==outfile once per input file, or not at
      all if "-nofilecheck" option is present or if a directory was
      created.
    * Fixed bugs with changing bit_depth of grayscale images.

* Version 1.5.6 (built with libpng-1.0.12)
    * Eliminated extra "Removed the cHNK chunk" messages generated by
      version 1.5.5 when "-rem alla" or "-rem allb" is used.
    * All unknown chunks including safe-to-copy chunks are now removed in
      response to the "-rem alla" or "-rem allb" options.
    * Issue a warning if the user tries "-cc" option when it is not
      supported.
2001-10-12 09:22:36 +00:00
mjl
496cdb3073 Update to 1.5.5
Reset reduce_to_gray and it_is_opaque flags prior to processing each image.
Enable removal of safe-to-copy chunks that are being handled as unknown
Added 262 to the length of uncompressed data when calculating
required_window_size, to account for zlib/deflate implementation.
Added "-bit_depth n" to the help screen.
Call png_set_packing() when increasing bit_depth to 2 or 4.
Added warning about not overwriting an existing tRNS chunk.
Reduced the memory usage
Write 500K IDAT chunks even when system libpng is being used.
Ignore all-zero gAMA and cHRM chunks, with a warning.
Added "-loco" option (writes MNG files with filter_method 64)
"-dir" and "-ext" options are no longer mutually exclusive, e.g.:
pngcrush -loco -dir Crushed -ext .mng *.png
Added "-iccp" option
Increased the zlib memory level to 9, which improves compression
Enabled the "-max max_idat_size" option, even when max_idat_size
exceeds the default 1/2 megabyte size.
Added missing "png_ptr" argument to png_error() call
Revised the "-help" output slightly and improved the "-version" output.
The "-already[_crushed]" option is now ignored if the "-force" option
is present or if chunks are being added, deleted, or modified.
Improved "things_have_changed" behavior (now, when set in a particular file, it is not set for all remaining files)
2001-06-10 20:01:22 +00:00
wiz
a4f21a5507 Move to sha1 digests, and/or add distfile sizes. 2001-04-21 09:54:06 +00:00
agc
fb467f5ac2 + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:22:34 +00:00
wiz
a2a4d06c6f Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-16 15:22:13 +00:00
tron
5feac46ad5 Use "${MASTER_SITE_SOURCEFORGE}". 2000-11-11 17:49:22 +00:00
wiz
d284acd7e3 reformat paragraphs 2000-08-10 23:51:00 +00:00
rh
8016c592cf Update pngcrush to 1.5.1. Changes are: disabled color counting by default
(instead it is controlled by commandline arguments "-cc" and "-no_cc"),
and addition of the word "irrevocably" to the license.
2000-07-30 19:23:04 +00:00
rh
a9d1eaf13b Update pngcrush to 1.5.0. Changes are bugfixes only. 2000-07-28 11:25:38 +00:00