Hello community,
here is the log from the commit of package netpbm for openSUSE:Factory checked in at 2012-11-29 09:24:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/netpbm (Old)
and /work/SRC/openSUSE:Factory/.netpbm.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "netpbm", Maintainer is "nadvornik@suse.com"
Changes:
--------
--- /work/SRC/openSUSE:Factory/netpbm/netpbm.changes 2012-09-17 16:58:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.netpbm.new/netpbm.changes 2012-11-29 09:24:57.000000000 +0100
@@ -1,0 +2,32 @@
+Wed Nov 21 08:25:24 UTC 2012 - pgajdos@suse.com
+
+- updated to 10.60.03:
+ * Xbmtopbm: fix incorrect output, memory leak. Thanks Prophet of
+ the Way .
+ * Pamtojpeg2k: default to no compression ratio constraint and
+ allow compression ratios less than 1. Because of compression
+ metadata, small images do require loss of quality in order to
+ get down to a compression ratio of 1.
+ * Sunicontopnm: Fix incorrect output for depth 8. Always broken
+ (depth = 8 capability was added in Netpbm 10.53 (December 2010).
+
+ pamgauss: Fix bug: erroneously says -maxval is too big on 64 bit
+ system. Always broken (Pamgauss was added in 10.23 (July 2004).
+ * xpmtoppm: major speedup for 3-character-per pixel files,
+ memory reduction for all files: use hash table instead of
+ linear search or direct index, go row by row.
+ * xpmtoppm: fix bogus "color number too large" failure. Broken
+ in 10.49 (December 2009).
+ * pnm_hashtuple: slight performance improvement from new hash
+ function. Thanks Prophet of the Way .
+ * ppmtospu: wild memory accesses. Always broken (program added in
+ 10.58 (March 2012).
+ * pamtosrf: fix storage corruption. Always broken (program added
+ in 10.55 (June 2011).
+
+-------------------------------------------------------------------
+Tue Nov 20 09:34:37 UTC 2012 - pgajdos@suse.com
+
+- add url tag
+
+-------------------------------------------------------------------
Old:
----
netpbm-10.59.2-documentation.tar.bz2
netpbm-10.59.2-nohpcdtoppm-noppmtompeg.tar.bz2
New:
----
netpbm-10.60.3-documentation.tar.bz2
netpbm-10.60.3-nohpcdtoppm-noppmtompeg.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ netpbm.spec ++++++
--- /var/tmp/diff_new_pack.dtg1Ve/_old 2012-11-29 09:24:58.000000000 +0100
+++ /var/tmp/diff_new_pack.dtg1Ve/_new 2012-11-29 09:24:58.000000000 +0100
@@ -31,11 +31,12 @@
%define libmaj 11
%define libmin 59
%define libver %{libmaj}.%{libmin}
-Version: 10.59.2
+Version: 10.60.3
Release: 0
Summary: A Powerful Graphics Conversion Package
License: BSD-3-Clause and GPL-2.0+ and SUSE-IJG and MIT and SUSE-Public-Domain
Group: Productivity/Graphics/Convertors
+Url: http://http://netpbm.sourceforge.net/
Source: netpbm-%{version}-nohpcdtoppm-noppmtompeg.tar.bz2
Source1: netpbm-%{version}-documentation.tar.bz2
Source2: baselibs.conf
++++++ netpbm-10.59.2-documentation.tar.bz2 -> netpbm-10.60.3-documentation.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/directory.html new/netpbm.sourceforge.net/doc/directory.html
--- old/netpbm.sourceforge.net/doc/directory.html 2012-03-08 04:23:19.000000000 +0100
+++ new/netpbm.sourceforge.net/doc/directory.html 2012-09-29 04:34:49.000000000 +0200
@@ -885,12 +885,6 @@
<DT><B><a href=pgmmorphconv.html>pgmmorphconv</a></b>
<DD>perform morphological convolutions on a PGM image: dilation and erosion.
-<DT><B><a href=pgmminkowski.html>pgmminkowski</a></b>
-<DD>Compute Minkowski integral over a PGM image</DD>
-
-<DT><B><a href=pbmminkowski.html>pbmminkowski</a></b>
-<DD>Compute Minkowski integral over a PBM image</DD>
-
<DT><B><a href=pamedge.html>pamedge</a> </B>
<DD>edge-detect (outline) an image
@@ -912,7 +906,7 @@
<DT><B><a href=ppmdist.html>ppmdist</a> </B>
<DD>map colors to high contrast grayscales arbitrarily
-<dt><b><a href="pnmmercator.html"></a></b>
+<dt><b><a href="pnmmercator.html">pnmmercator</a></b>
<dd>Turns a rectangular projection map into a Mercator projection
<DT><B><a href=ppmglobe.html>ppmglobe</a></b>
@@ -977,6 +971,12 @@
<DT><B><a href=pamtilt.html>pamtilt</a></B>
<DD>Measure the tilt of an image, i.e. document skew
+<DT><B><a href=pgmminkowski.html>pgmminkowski</a></b>
+<DD>Compute Minkowski integral over a PGM image</DD>
+
+<DT><B><a href=pbmminkowski.html>pbmminkowski</a></b>
+<DD>Compute Minkowski integral over a PBM image</DD>
+
<DT><B><a href=pammosaicknit.html>pammosaicknit</a></B>
<DD>Validate a mosaic knitting pattern
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/giftopnm.html new/netpbm.sourceforge.net/doc/giftopnm.html
--- old/netpbm.sourceforge.net/doc/giftopnm.html 2012-05-26 03:48:59.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/giftopnm.html 2012-09-13 23:48:25.000000000 +0200
@@ -2,7 +2,7 @@
<HTML><HEAD><TITLE>Giftopnm User Manual</TITLE></HEAD>
<BODY>
<H1>giftopnm</H1>
-Updated: 25 May 2012
+Updated: 13 September 2012
<BR>
<A HREF="#index">Table Of Contents</A>
@@ -52,12 +52,13 @@
<DL COMPACT>
<DT><B>--alphaout=</B><I>alpha-filename</I>
-<DD><B>giftopnm </B> creates a PBM file containing the alpha channel values in
-the input image. If the input image doesn't contain an alpha channel,
-the <I>alpha-filename</I> file contains all zero (transparent) alpha values.
-If you don't specify <B>--alphaout</B>, <B>giftopnm</B> does not generate an
-alpha file, and if the input image has an alpha channel, <B>giftopnm</B>
-simply discards it.
+<DD><B>giftopnm </B> creates a PBM file containing the transparency
+information from the input image. This "alpha image" is the same
+dimensions as the input image, and each pixel of the alpha image tells whether
+the corresponding pixel of the input image is transparent. Black means
+transparent; white means opaque. If you don't specify <B>--alphaout</B>,
+<B>giftopnm</B> does not generate an alpha file, and if the input image has an
+alpha channel, <B>giftopnm</B> simply discards it.
<P>If you specify <B>-</B> as the filename, <B>giftopnm</B> writes the
alpha output to Standard Output and discards the image.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/jpeg2ktopam.html new/netpbm.sourceforge.net/doc/jpeg2ktopam.html
--- old/netpbm.sourceforge.net/doc/jpeg2ktopam.html 2010-06-14 04:19:01.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/jpeg2ktopam.html 2012-10-02 00:28:31.000000000 +0200
@@ -119,7 +119,7 @@
<H2 id="seealso">SEE ALSO</H2>
-<B><A HREF="pamtojpeg2k.html">jpctopam</A></B>,
+<B><A HREF="pamtojpeg2k.html">pamtojpeg2k</A></B>,
<B><A HREF="jpegtopnm.html">pnmtopeg</A></B>,
<B><A HREF="ppm.html">ppm</A></B>,
<B><A HREF="pgm.html">pgm</A></B>,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pammasksharpen.html new/netpbm.sourceforge.net/doc/pammasksharpen.html
--- old/netpbm.sourceforge.net/doc/pammasksharpen.html 2011-01-26 17:55:50.000000000 +0100
+++ new/netpbm.sourceforge.net/doc/pammasksharpen.html 2012-09-26 00:32:10.000000000 +0200
@@ -25,7 +25,7 @@
<pre>
pamgauss 5 5 -sigma=.7 -tupletype=GRAYSCALE | pamtopnm >gauss.pgm
- pnmconvol -noffset gauss.pgm myimage.ppm >blurred.ppm
+ pnmconvol -nooffset gauss.pgm myimage.ppm >blurred.ppm
pammasksharpen blurred.ppm myimage.ppm >sharpened.ppm
</pre>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pamsumm.html new/netpbm.sourceforge.net/doc/pamsumm.html
--- old/netpbm.sourceforge.net/doc/pamsumm.html 2010-06-14 04:19:01.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/pamsumm.html 2012-10-26 04:56:26.000000000 +0200
@@ -2,17 +2,15 @@
<HTML><HEAD><TITLE>Pamsumm User Manual</TITLE></HEAD>
<BODY>
<H1>pamsumm</H1>
-Updated: 07 February 2004
+Updated: 26 October 2012
<BR>
<A HREF="#index">Table Of Contents</A>
-<A NAME="lbAB"> </A>
<H2>NAME</H2>
pamsumm - Summarize the samples in a Netpbm image arithmetically
-<A NAME="lbAC"> </A>
-<H2>SYNOPSIS</H2>
+<H2 id="synopsis">SYNOPSIS</H2>
<B>pamsumm</B>
{
<b>-sum</b> |
@@ -28,8 +26,7 @@
You may use two hyphens instead of one. You may separate an option
name and its value with white space instead of an equals sign.
-<A NAME="lbAD"> </A>
-<H2>DESCRIPTION</H2>
+<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
@@ -37,12 +34,15 @@
summary function over all the samples in all the rows, columns, and planes
and prints the result to Standard Output.
-<p><b>pamsumm</b> performs the operation on the actual sample values,
-not on the light intensities represented by them in the case that the
-image is a PGM or PPM image or PAM equivalent. If you want to do
-arithmetic on light intensities of such a visual image, you can use
-<b>pnmgamma</b> to convert it to one with samples proportional to
-light intensity, and then use <b>pamsumm</b> on the result.
+<p><b>pamsumm</b> performs the operation on the actual sample values. In the
+case of a PGM or PPM or PAM equivalent (i.e. a visual image), this is not the
+same as the light intensities represented by those samples. See the format
+specifications of <a href="pgm.html">PGM</a>,
+<a href="ppm.html">PPM</a>, and <a href="pgm.html">PAM</a>, for the precise
+meanings of samples in these formats. If you want to do arithmetic on light
+intensities of such a visual image, you can use <b>pnmgamma</b> to convert it
+to one with samples proportional to light intensity, and then
+use <b>pamsumm</b> on the result.
<p>If you want to summarize by column (e.g. add up the columns
separately), use <b>pamsummcol</b>. If you want to summarize by row,
@@ -51,8 +51,7 @@
extract it and then <b>pamsumm</b>.
-<A NAME="options"> </A>
-<H2>OPTIONS</H2>
+<H2 id="options">OPTIONS</H2>
<p>You must specify exactly one of <b>-sum</b>, <b>-mean</b>,
<b>-min</b>, or <b>-max</b>.
@@ -109,28 +108,24 @@
</DL>
-<A NAME="lbAE"> </A>
-<H2>SEE ALSO</H2>
+<H2 id="seealso">SEE ALSO</H2>
<B><A HREF="pamsummcol.html">pamsumm</A></B>,
<B><A HREF="pam.html">pam</A></B>,
-<A NAME="history"> </A>
-<h2>HISTORY</h2>
+<h2 id="history">HISTORY</h2>
<p><b>pamsumm</b> was added to Netpbm in Release 10.21 (March
2004).
<HR>
-<A NAME="index"> </A>
-<H2>Table Of Contents</H2>
+<H2 id="index">Table Of Contents</H2>
<UL>
-<LI><A HREF="#lbAB">NAME</A>
-<LI><A HREF="#lbAC">SYNOPSIS</A>
-<LI><A HREF="#lbAD">DESCRIPTION</A>
+<LI><A HREF="#synopsis">SYNOPSIS</A>
+<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#options">OPTIONS</A>
-<LI><A HREF="#lbAE">SEE ALSO</A>
+<LI><A HREF="#seealso">SEE ALSO</A>
<LI><A HREF=#history>HISTORY</A>
</UL>
</BODY>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pamtojpeg2k.html new/netpbm.sourceforge.net/doc/pamtojpeg2k.html
--- old/netpbm.sourceforge.net/doc/pamtojpeg2k.html 2011-01-26 17:55:50.000000000 +0100
+++ new/netpbm.sourceforge.net/doc/pamtojpeg2k.html 2012-10-21 22:45:59.000000000 +0200
@@ -120,13 +120,27 @@
you get this compression ratio. E.g. 4 means the output will be about
one fourth the size in bytes of the input file.
-<p>The compression ratio must be at least 1. The default is 1, which means
-the output has all the quality of the input -- the conversion is lossless.
+<p>The ratio concerns just the raster part of the image, with the denominator
+being what the raster would take if it were encoded the most naive way
+possible (e.g. 3 bytes per pixel in 8-bit-per-sample RGB). It does,
+however, include metadata that is part of the compressed raster. Because
+of that, it may not be possible to give you your requested compression ratio
+at any quality. If it isn't, <b>pamtojpeg2k</b> fails with a message
+saying so.
+
+<p>If you don't specify this option, <b>pamtojpeg2k</b> gives you the best
+compression it can without losing any quality. Because of the metadata issue
+described above, this may mean, for a small image, the image actually expands.
<p>Note that though Jasper library takes a compression factor, this
option specifies a compression ratio. The compression factor is the
multiplicative inverse of (1 divided by) the compression ratio.
+<p>Before Netpbm 10.61 (December 2012), the default was a compression ratio
+of 1, and if <b>pamtojpeg2k</b> could not make the output that small, it just
+made it as small as it could, with zero quality. You know this is happening
+when you see the warning message, "empty layer generated."
+
<DT><B>-verbose</b>
<DD>This option causes <b>pamtojpeg2k</b> to issue informational messages about
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pgmmedian.html new/netpbm.sourceforge.net/doc/pgmmedian.html
--- old/netpbm.sourceforge.net/doc/pgmmedian.html 2010-06-14 04:19:01.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/pgmmedian.html 2012-11-12 00:24:06.000000000 +0100
@@ -30,6 +30,7 @@
hyphens instead of single hyphen to denote options. You may use white
space in place of the equals sign to separate an option name from its value.
+
<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
@@ -37,9 +38,15 @@
<p><b>pgmmedian</b> applies a median filter to a PGM image, using either
the histogram sort or select kth value method to determine the median.
+<p>A median filter is a convolution filter in which the value of a pixel in
+the output is the median of a certain set of pixels in the neighborhood of the
+corresponding input pixel. The effect is to eliminate locally extreme values.
+Such pixels typically show up as speckles.
+
<p>See the <b>-type</b> and <b>-cutoff</b> options for information on
how <b>pgmmedian</b> chooses between the two methods.
+
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
@@ -105,6 +112,8 @@
<A HREF="pgmnoise.html">pgmnoise</A>,
<A HREF="pamaddnoise.html">pamaddnoise</A>,
+<A HREF="pnmconvol.html">pnmconvol</A>,
+<A HREF="pgmmorphconv.html">pgmmorphconv</A>,
<A HREF="pgm.html">pgm</A>
<h2 id="history">HISTORY</h2>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pnmconvol.html new/netpbm.sourceforge.net/doc/pnmconvol.html
--- old/netpbm.sourceforge.net/doc/pnmconvol.html 2010-09-22 18:10:43.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/pnmconvol.html 2012-11-12 00:19:30.000000000 +0100
@@ -259,6 +259,22 @@
want to use a PPM and do a different convolution to different
colors, you can certainly do that.
+
+<h3 id="otherconvol">Other Forms of Convolution</h3>
+
+<p><b>pnmconvol</b> does only arithmetic, linear combination convolution.
+There are other forms of convolution that are especially useful in image
+processing.
+
+<p><b>pgmmedian</b> does median filtering, which is a form of convolution
+where the output pixel value, rather than being a linear combination of the
+pixels in the window, is the median of a certain subset of them.
+
+<p><b>pgmmorphconv</b> does dilation and erosion, which is like the median
+filter but the output value is the minimum or maximum of the values in the
+window.
+
+
<H2 id="options">OPTIONS</H2>
<DL COMPACT>
@@ -335,6 +351,7 @@
<B><A HREF="pnmsmooth.html">pnmsmooth</A></B>,
<B><A HREF="pgmmorphconv.html">pgmmorphconv</A></B>,
+<B><A HREF="pgmmedian.html">pgmmedian</A></B>,
<B><A HREF="pnmnlfilt.html">pnmnlfilt</A></B>,
<B><A HREF="pgmkernel.html">pgmkernel</A></B>,
<B><A HREF="pamgauss.html">pamgauss</A></B>,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/ppmbrighten.html new/netpbm.sourceforge.net/doc/ppmbrighten.html
--- old/netpbm.sourceforge.net/doc/ppmbrighten.html 2011-06-25 22:19:35.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/ppmbrighten.html 2012-10-26 04:56:30.000000000 +0200
@@ -2,16 +2,14 @@
<HTML><HEAD><TITLE>Ppmbrighten User Manual</TITLE></HEAD>
<BODY>
<H1>ppmbrighten</H1>
-Updated: 09 January 2003
+Updated: 26 October 2012
<BR>
<A HREF="#index">Table Of Contents</A>
-<A NAME="lbAB"> </A>
<H2>NAME</H2>
ppmbrighten - change a PPM image's Saturation and Value
-<A NAME="lbAC"> </A>
-<H2>SYNOPSIS</H2>
+<H2 id="synopsis">SYNOPSIS</H2>
<b>ppmbrighten</b>
[<b>-normalize</b>]
@@ -19,11 +17,12 @@
[<b>-value </b>[<b>+</b>|<b>-</b><i>value_percent</i>]]
<i>ppmfile</i>
-<?makeman .SH OPTION USAGE ?>
-<P>All options can be abbreviated to their shortest unique prefix.
+<P>Minimum unique abbreviation of option is acceptable. You may use
+double hyphens instead of single hyphen to denote options. You may use
+white space in place of the equals sign to separate an option name
+from its value.
-<A NAME="lbAD"> </A>
-<H2>DESCRIPTION</H2>
+<H2 id="description">DESCRIPTION</H2>
<p>This program is part of <a href="index.html">Netpbm</a>.
@@ -41,15 +40,14 @@
"value" as a conventional English word has a much more abstract
meaning.
-<p>Value is a measure of how much total light intensity is in the
-color, relative to some specified maximum (the PPM format is also
-defined in terms of a specified maximum intensity -- For the purposes
-of this program, they are the same). In particular, it is the
-intensity of the most intense primary color component of the color
-divided by the maximum intensity possible for a component. Zero Value
-means black. White has full Value.
+<p>Value is a measure of how bright the color is, relative to some specified
+maximum (the PPM format is also defined in terms of a specified maximum
+brightness -- For the purposes of this program, they are the same). In
+particular, it is the brightness of the brightest primary color component of
+the color divided by the maximum brightness possible for a component. Zero
+Value means black. White has full Value.
-<p>Hue is an indication of the secondary color with the same intensity
+<p>Hue is an indication of the secondary color with the same brightness
that most closely approximates the color. A secondary color is made
of a combination of at most two of the primary colors.
@@ -68,21 +66,19 @@
you specify (e.g. it is already half saturated and you specify +200%),
<b>ppmbrighten</b> increases it to full Saturation instead.
-<p>For a simpler kind of brightening, you can use <b>pamfunc
--multiplier</b> simply to increase the intensity of each pixel by a
-specified per centage, clipping each RGB component where the
-calculated intensity would exceed full intensity. Thus, the brightest
-colors in the image would change chromaticity in addition to not
-getting the specified intensity boost. For <em>decreasing</em>
-brightness, <b>pamfunc</b> should do the same thing as
+<p>For a simpler kind of brightening, you can use <b>pamfunc -multiplier</b>
+simply to increase the brightness of each pixel by a specified per centage,
+clipping each RGB component where the calculated brightness would exceed full
+brightness. Thus, the brightest colors in the image would change chromaticity
+in addition to not getting the specified brightness boost.
+For <em>decreasing</em> brightness, <b>pamfunc</b> should do the same thing as
<b>ppmbrighten</b>.
<p><b>ppmflash</b> does another kind of brightening. It changes the
color of each pixel to bring it a specified per centage closer to white.
This increases the value and saturation.
-<A NAME="examples"></a>
-<H2>EXAMPLES</H2>
+<H2 id="examples">EXAMPLES</H2>
<p>To double the Value of each pixel:
<pre>
ppmbrighten -v 100
@@ -93,8 +89,7 @@
ppmbrighten -s 100 -v -50
</pre>
-<A NAME="options"></a>
-<H2>OPTIONS</H2>
+<H2 id="options">OPTIONS</H2>
<DL>
<DT><b>-value </b><i>value_percent</i>
@@ -124,8 +119,7 @@
</DL>
-<A NAME="lbAE"> </A>
-<H2>SEE ALSO</H2>
+<H2 id="seealso">SEE ALSO</H2>
<A HREF="pnmnorm.html">pnmnorm</A>,
<A HREF="ppmdim.html">ppmdim</A>,
@@ -136,8 +130,7 @@
<A HREF="ppmhist.html">ppmhist</A>,
<A HREF="ppm.html">ppm</A>
-<A NAME="lbAF"> </A>
-<H2>AUTHOR</H2>
+<H2 id="author">AUTHOR</H2>
<p>Copyright (C) 1990 by Brian Moffet.
Copyright (C) 1989 by Jef Poskanzer.
@@ -151,16 +144,14 @@
implied warranty.
<HR>
-<A NAME="index"> </A>
-<H2>Table Of Contents</H2>
+<H2 id="index">Table Of Contents</H2>
<UL>
-<LI><A HREF="#lbAB">NAME</A>
-<LI><A HREF="#lbAC">SYNOPSIS</A>
-<LI><A HREF="#lbAD">DESCRIPTION</A>
+<LI><A HREF="#synopsis">SYNOPSIS</A>
+<LI><A HREF="#description">DESCRIPTION</A>
<LI><A HREF="#examples">EXAMPLES</A>
<LI><A HREF="#options">OPTIONS</A>
-<LI><A HREF="#lbAE">SEE ALSO</A>
-<LI><A HREF="#lbAF">AUTHOR</A>
+<LI><A HREF="#seealso">SEE ALSO</A>
+<LI><A HREF="#author">AUTHOR</A>
</UL>
</BODY>
</HTML>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/doc/pstopnm.html new/netpbm.sourceforge.net/doc/pstopnm.html
--- old/netpbm.sourceforge.net/doc/pstopnm.html 2011-08-01 04:05:58.000000000 +0200
+++ new/netpbm.sourceforge.net/doc/pstopnm.html 2012-09-30 18:50:45.000000000 +0200
@@ -76,6 +76,13 @@
<B>pnm</B>, <B>pnmraw</B>, <B>ppm</B>, or <B>ppmraw</B>, you're in
business.
+<p>It's important to understand that <b>pstopnm</b> is a Netpbm image file
+format converter only in the broadest sense of the word, because Postscript is
+far from an image file format. What <b>pstopnm</b> really is is a Postscript
+renderer - an image generator. One place you'll notice the difference is
+where you expect <kbd>pstopnm | pnmtops</kbd> to be idempotent (which is not
+the case). There are details on this kind of conversion below.
+
<P><B>pstopnm</B> uses the value of the <B>GHOSTSCRIPT</B>
environment variable as the file name for the Ghostscript program. If
<B>GHOSTSCRIPT</B> is not set, <B>pstopnm</B> searches your
@@ -207,6 +214,41 @@
(above) that <b>pstopnm</b> trims the edges of the bordered subject
image to fit the computed output size.
+<h3 id="usagenotes">Usage Notes</h3>
+
+<p>There is some good advice on converting to and from Postscript, in the
+document <a href="http://mintaka.sdsu.edu/GF/bibliog/latex/PSconv.html">Postcript
+File Conversions</a> by Andrew T. Young.
+
+<h4 id="reversible">Reversible Conversion</h4>
+
+<p>If you're trying to do the equivalent of the naive
+<kbd>pstopnm | pnmtops</kbd>, the following steps will do it.
+
+<pre>
+<kbd>
+ $ pnmtops -nocenter -equalpixels -dpi 72 -noturn testimg.ppm > testimg.ps
+ $ pstopnm -xborder=0 -yborder=0 -xsize=<i>XSIZE</i> -ysize=<I>YSIZE</I> \
+ -stdout -quiet testimg.ps
+</kbd>
+</pre>
+
+<i>XSIZE</i> and <i>YSIZE</i> above are the image dimensions, which you can
+get from .ps file can awk or sed:
+
+<pre>
+<kbd>
+ $ grep "BoundingBox" testimg.ps
+ %%BoundingBox: 0 0 227 149
+
+ $ awk '/%%BoundingBox/ {print $4,$5}' testimg.ps
+ 227 149
+
+ $ xysize=$(awk '/%%BoundingBox/ {print "-xsize="$4,"-ysize="$5}' testimg.ps)
+ $ pstopnm -xborder=0 -yborder=0 $xysize ... testimg.ps
+</kbd>
+</pre>
+
<H2 id="options">OPTIONS</H2>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/netpbm.sourceforge.net/getting_netpbm.php new/netpbm.sourceforge.net/getting_netpbm.php
--- old/netpbm.sourceforge.net/getting_netpbm.php 2012-09-06 13:54:10.000000000 +0200
+++ new/netpbm.sourceforge.net/getting_netpbm.php 2012-11-20 14:39:32.000000000 +0100
@@ -107,9 +107,9 @@
<tr><th colspan="3" class="th1">Latest Tarballs</th></tr>
<tr><th>Series</th><th>Number</th><th>Date</th></tr>
<tr><td class="td1">Development</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/trunk/?view=tar">unnumbered</a></td><td>unknown</td></tr>
-<tr><td class="td1">Advanced</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/advanced/?view=tar">10.59.02</a></td><td>20 Jul 2012</td></tr>
-<tr><td class="td1">Stable</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/stable/?view=tar">10.47.40</a></td><td>20 Aug 2012</td></tr>
-<tr><td class="td1">Super Stable</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/super_stable/?view=tar">10.35.86</a></td><td>23 Jul 2012</td></tr>
+<tr><td class="td1">Advanced</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/advanced/?view=tar">0.00.00</a></td><td>not listed</td></tr>
+<tr><td class="td1">Stable</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/stable/?view=tar">0.00.00</a></td><td>not listed</td></tr>
+<tr><td class="td1">Super Stable</td><td class="td2"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/super_stable/?view=tar">0.00.00</a></td><td>not listed</td></tr>
<tr><td colspan="3" class="td3"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/userguide/?view=tar">User's Guide (HTML tree)</a></td></tr>
<tr><td colspan="3" class="td3"><a href="http://netpbm.svn.sourceforge.net/viewvc/netpbm/">Browse SVN repository to access additional releases</a></td></tr>
</table>
@@ -265,6 +265,6 @@
</address>
<p style="font-size:75%">
-This page was generated on 06 Sep 2012.
+This page was generated on 20 Nov 2012.
</body> </html>
++++++ netpbm-10.59.2-nohpcdtoppm-noppmtompeg.tar.bz2 -> netpbm-10.60.3-nohpcdtoppm-noppmtompeg.tar.bz2 ++++++
++++ 4269 lines of diff (skipped)
++++++ netpbm-security-code.patch ++++++
--- /var/tmp/diff_new_pack.dtg1Ve/_old 2012-11-29 09:24:59.000000000 +0100
+++ /var/tmp/diff_new_pack.dtg1Ve/_new 2012-11-29 09:24:59.000000000 +0100
@@ -988,17 +988,6 @@
header->colors = (Color *)calloc((unsigned int)header->ncolors,
sizeof(Color));
if (header->colors == NULL) {
-diff -up netpbm-10.58.01/converter/ppm/xpmtoppm.c.security-code netpbm-10.58.01/converter/ppm/xpmtoppm.c
---- netpbm-10.58.01/converter/ppm/xpmtoppm.c.security-code 2012-04-09 15:31:44.000000000 +0200
-+++ netpbm-10.58.01/converter/ppm/xpmtoppm.c 2012-04-09 15:41:54.193232227 +0200
-@@ -851,6 +851,7 @@ readXpmFile(FILE * const ifP
- &nColors, colorsP, &ptab);
- transparentP->none = true; /* No transparency in version 1 */
- }
-+ overflow2(*widthP, *heightP);
- totalpixels = width * height;
- MALLOCARRAY(data, totalpixels);
- if (!data)
diff -up netpbm-10.58.01/converter/ppm/yuvtoppm.c.security-code netpbm-10.58.01/converter/ppm/yuvtoppm.c
--- netpbm-10.58.01/converter/ppm/yuvtoppm.c.security-code 2012-04-09 15:31:44.000000000 +0200
+++ netpbm-10.58.01/converter/ppm/yuvtoppm.c 2012-04-09 15:40:03.218619602 +0200
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org