Commit graph

34 commits

Author SHA1 Message Date
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
rh
9a82057cf8 Update pngcrush to 1.4.8.
Changes include:

Version 1.4.8
 * Detect and remove all-opaque alpha channel.
 * Detect and reduce all-gray truecolor images to grayscale.

Version 1.4.7
 * Restored the "-ext" option that was inadvertently overridden
   with a new "-exit" option in version 1.4.6 ("-exit" is used to
   force an "exit" instead of a "return" from the main program).

Version 1.4.6
 * Fixed bug in color-counting of noninterlaced images.
 * Added capability of processing multiple rows at a time
   (disabled by default because it turns out to be no faster).
 * Replaced "return" statements in main() with "exit" statements.
   User can force exit instead of return with "-exit" argument.
 * Added the UCITA disclaimers to the help output.
2000-07-23 10:31:51 +00:00
rh
76c51054c0 Update pngcrush to 1.4.5
Changes are:
 * Added color-counting and palette-building capability
 * Added "-fix" option, for fixing bad CRC's and other correctable
	conditions.
 * Write sBIT.alpha=1 when adding an opaque alpha channel and sBIT is
	present.
 * Identify the erroneous 2615-byte sRGB monitor profile being written by
	Photoshop 5.5, which causes many apps to crash, and replace it
	with an sRGB chunk.
 * Added a check for input and output on different devices before
	rejecting the output file as being the same as the input file
	based on inode.
 * Added some UCITA language to the disclaimer.
 * Reduced scope of Try/Catch blocks to avoid nesting them, and removed
	returns from within the Try blocks, where they are not allowed.
 * Removed direct access to the png structure when possible
 * Removes extra IDAT chunks (such as found in some POV-ray PNGs) with a
	warning instead of bailing out.
 * Removed the old setjmp interface entirely.
 * RGB to Grayscale conversion is more accurate (15-bit instead of 8-bit)
	and now uses only integer arithmetic.
 * Changed "Compressed" to "Uncompressed" in help for -itxt.
 * Stifled some compiler warnings
 * Add test on stat_buf.st_size to verify fpin==fpout, because stat in
	MSVC++6.0 standard version returns stat_buf.st_ino=0 for all files
 * Revised pngcrush.h to make it easier to control PNG_ZBUF_SIZE and
	PNG_NO_FLOATING_POINT_SUPPORTED from a makefile.
 * Restored ability to enter "replace_gamma" value as a float even when
	floating point arithmetic is not enabled.
 * Enabled removing tEXt, zTXt, or iTXt chunks by chunk type
 * Removed definition of TOO_FAR from pngcrush.h
 * Uses new libpng error handler; if a file has errors, pngcrush now will
	continue on and compress the remaining files instead of bailing
	out.
2000-07-05 15:15:11 +00:00
wiz
3ee61f4d27 updated pngcrush to 1.3.4. ChangeLog says:
* Version 1.3.4 (built with libpng-1.0.5m)
 *   Do not allow pngcrush to overwrite the input file.
2000-02-09 02:52:36 +00:00
rh
5cc78024d7 Update pngcrush to 1.3.3. Changes are:
Version 1.3.3:
 - Restored ability to enter gamma as a float even when floating point
   arithmetic is not enabled.

Version 1.3.2:
 - Fixed "PNG_NO_FLOAING_POINT" typo in pngcrush.h
 - Renamed "dirname" to "directory_name" to avoid conflict with "dirname"
   that appears in string.h on some platforms.
 - #ifdef'ed out parts of the help screen for options that are unsupported.
2000-01-13 08:05:01 +00:00
abs
df05aef71f Strip trailing '.', and/or leading '(a|an) ' 2000-01-05 15:37:50 +00:00
rh
198112270b Update png-crush to 1.3.1. Changes include more use of
'unknown-chunk-processor' for generic chunks, a smaller executable, and
more info about text chunks on the help screen.
1999-12-28 10:04:34 +00:00
rh
3fe6b0621d Initial import of pngcrush-1.2.1, an optimizer for PNG (Portable Network
Graphics) files.
1999-12-07 19:56:21 +00:00