[l2h] problem about ppmquant (in netpbm-10.2X)
Shigeharu TAKENO
shige at iee.niit.ac.jp
Fri Jun 10 03:59:04 CEST 2005
shige 06/10 2005
----------------
I found a problem for netpbm-10.2X.
OS: Solaris 9
netpbm-10.26
latex2html-2002-2-1
When "make test", pstoimg failed in creating images.
pstoimg: Error: "/usr/local/graphics/bin/netpbm/ppmquant -floyd 256
< /tmp/l2h18631/p18647.pnm | /usr/local/graphics/bin/netpbm/pnmtopng
-interlace -trans 'gray 85' > img2.png" failed: Illegal seek
I tested the followings by hand:
% ppmquant -floyd 256 /tmp/l2h18631/p18647.pnm > test.pnm
pnmcolormap: making histogram...
pnmcolormap: 16 colors found
pnmcolormap: Image already has few enough colors (<=256). Keeping same colors.
pnmremap: 16 colors found in colormap
pnmremap: Out of memory allocating Floyd-Steinberg structures
pnmremap failed, rc=256
% ls -l test.pnm
-rw-r--r-- 1 foo foo 14 Jun 10 00:00 test.pnm
Ppmquant changed to a perl script in netpbm-10.19 and it calls
pnmquant which is also perl script and calls pnmcolormap and
pnmremap.
The followin patch may fix the problem.
----- From here -----
--- latex2html-2002-2-1/pstoimg.pin.ORG Sat Jan 3 15:14:59 2004
+++ latex2html-2002-2-1/pstoimg.pin Fri Jun 10 10:50:52 2005
@@ -880,7 +880,7 @@
if($opt{depth} == 1) {
$gs_aalias = '-dTextAlphaBits=4 ';
#if @PPMQUANT@
- $reduce_color = "$PPMQUANT -floyd 256";
+ $reduce_color = "$PPMQUANT 256";
#fi
}
else {
@@ -891,7 +891,7 @@
$GSDEVICE = $GSALIASDEVICE;
$gs_aalias = '-dTextAlphaBits=4 ';
#if @PPMQUANT@
- $reduce_color = "$PPMQUANT -floyd 256";
+ $reduce_color = "$PPMQUANT 256";
#fi
}
#fi
----- To here -----
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
shige at iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+
More information about the latex2html
mailing list