[l2h] pstoimg conversion fail

Pavel Sanda ps at twin.jikos.cz
Wed Jan 17 21:17:44 CET 2007


> pstoimg fails to convert certain postscript image
> when running "pstoimg bum.ps"
> (see attachment)

hello,

i've made a pstoimg patch fixing this bug. i'd like to ask
for pushing it upstream, however i dont know who
is currently maintaining the package ?

nice day
pavel
-------------- next part --------------
--- /usr/lib/latex2html/pstoimg.pl	2007-01-09 14:51:43.000000000 +0100
+++ pstoimg.pl	2007-01-09 14:51:19.000000000 +0100
@@ -270,6 +270,7 @@
 my $PNMCAT = '/usr/bin/pnmcat';
 my $PNMFILE = '/usr/bin/pnmfile';
 my $PBMMAKE = '/usr/bin/pbmmake';
+my $PAMPICK = '/usr/bin/pampick' ;
 # GIF support
 my $PPMTOGIF = '/usr/bin/ppmtogif';
 # PNG support
@@ -1272,9 +1273,9 @@
   # run ppmquant only on color/gray images
   if($reduce_color && (!$type || $type =~ /(ppm|pgm)/i)) {
     if($cmd) {
-      $cmd .= "| $reduce_color "
+      $cmd .= "$PAMPICK 0 | $reduce_color "
     } else {
-      $cmd = "$reduce_color < $in ";
+      $cmd = "$PAMPICK 0 < $in | $reduce_color ";
     }
   } else { $cmd = '' }
 


More information about the latex2html mailing list