when i try to convert postscript file (see attachment) i get the following error: $ pstoimg bum.ps pstoimg V2002-2-1 (Revision 1.19, Perl 5.008008) pstoimg: Processing bum.ps pstoimg: Error: "/usr/bin/ppmquant 256 < /tmp/p14449.pnm | /usr/bin/pnmtopng > bum.png" failed: Bad file descriptor when the output from gnuplot is the same picture in monochromatic colors no error occurs, which is probably caused by the fact that ppmquant is not called. using dev-tex/latex2html-2002.2.1_pre20041025-r1. (i have tried both netpbm 10.36.0 and 10.34)
Created attachment 100620 [details] poscript example
*** This bug has been marked as a duplicate of 111188 ***
this bug shares the eroror message with 111188 , but it is not the same error, as bug-file for 111188 works without problems for me. i will add patch for this bug soon
this bug is caused by the fact, that the intermediate .pnm file created in pstoimg consists of two images (see pamfile -allimages). older versions of netpbm ignored this fact and just took the first one, however the new version check this and pnmquant fails with error. my fix simply takes only the first image, which is then used for pnmquant. see patch for pstoimg.
Created attachment 106207 [details, diff] patch for pstoimg.pl
hmm you have the -multipage option for this. admitedly the error message is weird and that patch could be useful, but then i'll need one that applies when building latex2html
Created attachment 172018 [details, diff] pstoimg2.patch better one
i added latex2html-2008-r2 which fixes this crash into rebutia overlay
Please test with dev-tex/latex2html-2017.2-r2 and dev-tex/latex2html-2015