<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 12.12.2008 um 00:50 schrieb Shigeharu TAKENO:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>shige 12/12 2008<br>----------------<br><br>Christian wrote:<br>| ############<br>| Converting image #2<br>| pstoimg: Error: "/sw/bin/ppmquant -floyd 256 < /tmp/l2h1354/p1370.pnm <br>| | /sw/bin/pnmtopng -interlace -trans 'gray85' > img2.png" failed: <br>| Invalid argument<br>| <br>| Error while converting image<br>| Converting image #1<br>| pstoimg: Error: "/sw/bin/pnmcrop < /tmp/l2h1354/p1386.pnm | /sw/bin/ <br>| pnmcrop -bot -sides | /sw/bin/pnmcrop -l -sides | /sw/bin/ <br>| pnmcrop -r -sides | /sw/bin/pnmcrop -l -sides | /sw/bin/ppmquant <br>| -floyd 256 | /sw/bin/pnmtopng -interlace -trans 'gray85' > img1.png" <br>| failed: Invalid argument<br>| <br>| Error while converting image<br>| ############<br><br>To know which command cause the problem, try to do the following:<br><br>1. Do "make test 'ARGS=-debug'"<br>2. By the '-debug' option, image files /tmp/l2hXXXX/pXXXX.pnm will <br> remain (XXXX is certain number). Please check that the file <br> /tmp/l2hXXXX/pXXXX.pnm given to pnmcrop exists and the size is <br> not zero.<br>3. Try to do the each command above by hand without pipelines:<br><br> /sw/bin/pnmcrop -verbose < /tmp/l2hXXXX/pXXXX.pnm > 1.pnm<br> (configure says "pnmcrop -verbose" has no problem)<br> /sw/bin/pnmcrop -bot -sides < 1.pnm > 2.pnm<br> /sw/bin/pnmcrop -l -sides < 2.pnm > 3.pnm<br> /sw/bin/pnmcrop -r -sides < 3.pnm > 4.pnm<br> /sw/bin/pnmcrop -l -sides < 4.pnm > 5.pnm<br> /sw/bin/ppmquant -floyd 256 < 5.pnm > 6.pnm<br> /sw/bin/pnmtopng -interlace -trans 'gray85' < 6.pnm > 7.png<br><br>I think you will find which command make the failure.</div></blockquote><br></div><div>1. I did "make test 'ARGS=-debug" (the whole output is added below)</div><div><br></div><div>2. The files exists (<span class="Apple-style-span" style="font-size: 12px; ">p2031.pnm, <span class="Apple-style-span" style="font-size: 13px; "><span class="Apple-style-span" style="font-size: 12px; ">p2046.pnm<span class="Apple-style-span" style="font-size: 13px; ">) and have a size of 20kb and 64kb. Within that folder "<span class="Apple-style-span" style="font-size: 12px; ">l2h2015<span class="Apple-style-span" style="font-size: 13px; ">" also the ps files exist and lock good. Also the "<span class="Apple-style-span" style="font-size: 12px; ">images.dvi<span class="Apple-style-span" style="font-size: 13px; ">" within the "<span class="Apple-style-span" style="font-size: 12px; ">l2htest<span class="Apple-style-span" style="font-size: 13px; ">" folder lock good.</span></span></span></span></span></span></span></span></span></span></div><div><br></div><div>3. Within the output (see below) I found the following for both images:</div><div><br></div><div>########</div><div><div>Can't exec "pnmquant": No such file or directory at /sw/bin/ppmquant line 29.</div><div>pnmtopng: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.</div><div>pstoimg: Error: "/sw/bin/ppmquant -floyd 256 < /tmp/l2h2015/p2031.pnm | /sw/bin/pnmtopng -interlace -trans 'gray85' > img2.png" failed: </div><div>Debug (syswait): Finished child process: #2031</div><div> at ../latex2html line 4230</div><div><br></div><div>Error while converting image</div></div><div>########</div><div><br></div><div>I checked the dir "/sw/bin/" and "ppmquant" is available there.</div><div><br></div><div><br></div><div><br></div><div>####################</div><div><div>ChristiansMacBook:latex2html-2008 christian$ make test 'ARGS=-debug'</div><div>LATEX2HTMLDIR=/Users/christian/Downloads/latex2html-2008; export LATEX2HTMLDIR ; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>latex2html='' ; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>for file in latex2html bin/latex2html* bin/unix/latex2html*; do \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> test -s $file && latex2html=$file break ; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>done ; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if test -n "$latex2html"; then \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> echo "*** Running test on $latex2html"; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> cd tests ; /usr/bin/perl ../$latex2html -test_mode -debug l2htest ; \</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>fi</div><div>*** Running test on latex2html</div><div>This is LaTeX2HTML Version 2008 (1.71)</div><div>by Nikos Drakos, Computer Based Learning Unit, University of Leeds.</div><div><br></div><div>Revised and extended by:</div><div> Marcus Hennecke, Ross Moore, Herb Swan and others</div><div>...producing markup for HTML version 3.2 </div><div><br></div><div><br></div><div><br></div><div>Extension: loading /Users/christian/Downloads/latex2html-2008/versions/latin1.pl</div><div>HTML version: loading /Users/christian/Downloads/latex2html-2008/versions/html3_2.pl</div><div><br></div><div> *** processing declarations ***</div><div>Starting at 1229081237 seconds</div><div><br></div><div>OPENING /Users/christian/Downloads/latex2html-2008/tests/l2htest.tex </div><div><br></div><div>Note: Working directory is /Users/christian/Downloads/latex2html-2008/tests/l2htest</div><div>Note: Images will be generated in /tmp/l2h2015</div><div><br></div><div>Debug (syswait): Running "/usr/bin/perl /Users/christian/Downloads/latex2html-2008/texexpand -debug -auto_exclude -save_styles /Users/christian/Downloads/latex2html-2008/tests/l2htest/TMP/styles -texinputs /Users/christian/Downloads/latex2html-2008/tests -out /Users/christian/Downloads/latex2html-2008/tests/l2htest/TMP/l2htest /Users/christian/Downloads/latex2html-2008/tests/l2htest.tex"</div><div> at ../latex2html line 804</div><div>texexpand V2008 (Revision 1.12)</div><div><br></div><div>texexpand: LaTeX2HTML inputs are in:</div><div>texexpand: .</div><div>texexpand: /Users/christian/Downloads/latex2html-2008/tests</div><div>texexpand: %--- Found class: \documentclass{article}</div><div><br></div><div>texexpand: %--- Found include at level 1: \include{basic}</div><div>texexpand: %--- checking for basic</div><div>texexpand: %--- looking for ./basic</div><div>texexpand: %--- found ./basic.tex</div><div>texexpand: %--- Found include at level 2: \input{basicinc}</div><div>texexpand: %--- checking for basicinc</div><div>texexpand: %--- looking for ./basicinc</div><div>texexpand: %--- found ./basicinc.tex</div><div>texexpand: %--- Found include at level 1: \include{formulas}</div><div>texexpand: %--- checking for formulas</div><div>texexpand: %--- looking for ./formulas</div><div>texexpand: %--- found ./formulas.texDebug (syswait): Finished child process: #2023</div><div> at ../latex2html line 804</div><div><br></div><div><br></div><div><br></div><div>Loading /Users/christian/Downloads/latex2html-2008/styles/texdefs.perl...</div><div>Package: loading /Users/christian/Downloads/latex2html-2008/styles/article.perl</div><div>Reading ...</div><div>++</div><div>@@@</div><div><br></div><div>Doing ./basic.tex </div><div>%%%</div><div> *** opening brace #27 is unmatched ***</div><div> preceding: \Large Large and {\bf boldface</div><div> </div><div><br></div><div> *** opening brace #28 is unmatched ***</div><div> preceding: \bf boldface</div><div> </div><div><br></div><div>Processing macros ...++</div><div>@@@@@@@@@@@@@@@@@@@@</div><div><br></div><div>Doing ./basicinc.tex </div><div>%%%</div><div> *** matching brace #28 found ***</div><div><br></div><div> *** matching brace #27 found ***</div><div><br></div><div>Processing macros ...++</div><div>@@@@@@@@@@@</div><div><br></div><div>Doing ./formulas.tex </div><div>%%</div><div>Processing macros ...++</div><div>@@@</div><div><br></div><div>Translating ...</div><div>0/6:top of l2htest:"LaTeX2HTML Test Document" for l2htest.html</div><div><br></div><div> *** translating preamble ***</div><div>....</div><div> *** preamble done ***</div><div>;;.</div><div><br></div><div>1/6:section:.."Some basic stuff" for node1.html</div><div>;..;</div><div><br></div><div>2/6:subsection:..."Fonts" for node2.html</div><div>;.....................;..</div><div><br></div><div>3/6:subsection:..."Lists" for node3.html</div><div>;.,..,..;.</div><div><br></div><div>4/6:subsection:..."Table" for node4.html</div><div>;..,..;</div><div><br></div><div>5/6:section:.."Mathematic formulas" for node5.html</div><div>;.,.,;.</div><div><br></div><div>6/6:sectionstar:.."About this document ..." for node6.html</div><div>;;.</div><div><br></div><div>Writing image file ...</div><div><br></div><div>/usr/texbin/latex ./images.tex</div><div>Debug (syswait): Running "/usr/texbin/latex ./images.tex"</div><div> at ../latex2html line 3782</div><div>This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7)</div><div> %&-line parsing enabled.</div><div>entering extended mode</div><div>(./images.tex</div><div>LaTeX2e <2005/12/01></div><div>Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh</div><div>yphenation, german-x-2008-06-18, ngerman-x-2008-06-18, ancientgreek, ibycus, ar</div><div>abic, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danish, dutc</div><div>h, esperanto, estonian, farsi, finnish, french, galician, german, ngerman, mono</div><div>greek, greek, hungarian, icelandic, indonesian, interlingua, irish, italian, la</div><div>tin, mongolian, mongolian2a, bokmal, nynorsk, polish, portuguese, romanian, rus</div><div>sian, sanskrit, serbian, slovak, slovenian, spanish, swedish, turkish, ukenglis</div><div>h, ukrainian, uppersorbian, welsh, loaded.</div><div><br></div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/base/article.cls</div><div>Document Class: article 2005/09/16 v1.4f Standard LaTeX document class</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo))</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/base/ifthen.sty)</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/color.sty</div><div>(/usr/local/texlive/2008/texmf/tex/latex/config/color.cfg)</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/dvips.def)</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/graphics/dvipsnam.def))</div><div>(/usr/local/texlive/2008/texmf-dist/tex/latex/base/inputenc.sty)</div><div>No file images.aux.</div><div><br></div><div>latex2htmlLength hsize=349.0pt</div><div><br></div><div>latex2htmlLength vsize=633.0pt</div><div><br></div><div>latex2htmlLength hoffset=0.0pt</div><div><br></div><div>latex2htmlLength voffset=0.0pt</div><div><br></div><div>latex2htmlLength topmargin=0.0pt</div><div><br></div><div>latex2htmlLength topskip=0.00003pt</div><div><br></div><div>latex2htmlLength headheight=0.0pt</div><div><br></div><div>latex2htmlLength headsep=0.0pt</div><div><br></div><div>latex2htmlLength parskip=0.0pt plus 1.0pt</div><div><br></div><div>latex2htmlLength oddsidemargin=62.0pt</div><div><br></div><div>latex2htmlLength evensidemargin=62.0pt</div><div><br></div><div>l2hSize :displaymath105:13.77855pt::0.0pt::349.0pt.</div><div>[1]</div><div>l2hSize :tex2html_wrap_inline107:10.59451pt::10.59451pt::85.6146pt.</div><div>[2] (./images.aux) )</div><div>Output written on images.dvi (2 pages, 880 bytes).</div><div>Transcript written on images.log.</div><div>Debug (syswait): Finished child process: #2028</div><div> at ../latex2html line 3782</div><div><br></div><div> *** processing 2 images ***</div><div><br></div><div>Generating postscript images using dvips ...</div><div>/usr/texbin/dvips -S1 -i -Ppdf -E -E -o/tmp/l2h2015/image ./images.dvi</div><div>Debug (syswait): Running "/usr/texbin/dvips -S1 -i -Ppdf -E -E -o/tmp/l2h2015/image ./images.dvi</div><div>"</div><div> at ../latex2html line 3898</div><div>This is dvips(k) 5.97 Copyright 2008 Radical Eye Software (<a href="http://www.radicaleye.com">www.radicaleye.com</a>)</div><div>' TeX output 2008.12.12:1227' -> /tmp/l2h2015/image</div><div>(-> /tmp/l2h2015/image001) </usr/local/texlive/2008/texmf/dvips/base/tex.pro></div><div></usr/local/texlive/2008/texmf/dvips/config/alt-rule.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/texps.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/special.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/color.pro></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr7.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmex10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmsy10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmmi10.pfb>[1] </div><div>(-> /tmp/l2h2015/image002) </usr/local/texlive/2008/texmf/dvips/base/tex.pro></div><div></usr/local/texlive/2008/texmf/dvips/config/alt-rule.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/texps.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/special.pro></div><div></usr/local/texlive/2008/texmf/dvips/base/color.pro></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr7.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmex10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmsy10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmr10.pfb></div><div></usr/local/texlive/2008/texmf-dist/fonts/type1/bluesky/cm/cmmi10.pfb>[2] </div><div>Debug (syswait): Finished child process: #2030</div><div> at ../latex2html line 3898</div><div>Converting image #2</div><div>Debug (syswait): Running "/usr/bin/perl /Users/christian/Downloads/latex2html-2008/pstoimg -type png -debug -tmp /tmp/l2h2015 -discard -interlace -antialias -depth 1 -scale 1.6 -geometry 85x21 -margins 134,72 -crop abls -transparent -out img2.png /tmp/l2h2015/image002.ps"</div><div> at ../latex2html line 4230</div><div>pstoimg V2008 (Revision 1.19, Perl 5.008008)</div><div>pstoimg: Temporary directory is /tmp/l2h2015</div><div>pstoimg: Processing /tmp/l2h2015/image002.ps</div><div>pstoimg: EPSF dimensions are 90x28</div><div>pstoimg: Running /usr/local/bin/gs -sDEVICE=ppmraw -g144x45 -r115 -dTextAlphaBits=4 -sOutputFile=/tmp/l2h2015/p2031.pnm </div><div>GS>-133 -693 translate</div><div>GS>(/tmp/l2h2015/image002.ps) run</div><div>GS>showpage</div><div>GS>quit</div><div><br></div><div>GPL Ghostscript 8.62 (2008-02-29)</div><div>Copyright (C) 2008 Artifex Software, Inc. All rights reserved.</div><div>This software comes with NO WARRANTY: see the file PUBLIC for details.</div><div>GS>GS>>>showpage, press <return> to continue<<</div><div>GS>>>showpage, press <return> to continue<<</div><div>GS>Running "/sw/bin/pnmcrop -verbose < /tmp/l2h2015/p2031.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -l -sides > /tmp/l2h2015/p2031.t01"</div><div>pnmcrop: Background color is #b3b3b3</div><div>pnmcrop: cropping 2 rows off the top</div><div>pnmcrop: cropping 1 row off the bottom</div><div>pnmcrop: cropping 1 col off the left</div><div>pnmcrop: cropping 1 col off the right</div><div>pnmcrop: Background color is #000000</div><div>pnmcrop: cropping 2 rows off the bottom</div><div>pnmcrop: Background color is #000000</div><div>pnmcrop: cropping 2 cols off the left</div><div>Image "/tmp/l2h2015/p2031.pnm" is PPM, 140x40</div><div>Running "/sw/bin/pnmcrop -verbose -sides -bot < /tmp/l2h2015/p2031.pnm > /tmp/l2h2015/p2031.t02"</div><div>pnmcrop: Background color is #b3b3b3</div><div>pnmcrop: cropping 15 rows off the bottom</div><div>Image "/tmp/l2h2015/p2031.t02" is PPM, 140x25</div><div>Image "/tmp/l2h2015/p2031.pnm" is PPM, 140x40</div><div>Running "/sw/bin/ppmquant -floyd 256 < /tmp/l2h2015/p2031.pnm | /sw/bin/pnmtopng -interlace -trans 'gray85' > img2.png"</div><div>Can't exec "pnmquant": No such file or directory at /sw/bin/ppmquant line 29.</div><div>pnmtopng: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.</div><div>pstoimg: Error: "/sw/bin/ppmquant -floyd 256 < /tmp/l2h2015/p2031.pnm | /sw/bin/pnmtopng -interlace -trans 'gray85' > img2.png" failed: </div><div>Debug (syswait): Finished child process: #2031</div><div> at ../latex2html line 4230</div><div><br></div><div>Error while converting image</div><div>Converting image #1</div><div>Debug (syswait): Running "/usr/bin/perl /Users/christian/Downloads/latex2html-2008/pstoimg -type png -debug -tmp /tmp/l2h2015 -discard -interlace -antialias -depth 1 -scale 1.6 -geometry 348x14 -margins 134,72 -crop ablrl -transparent -out img1.png /tmp/l2h2015/image001.ps"</div><div> at ../latex2html line 4230</div><div>pstoimg V2008 (Revision 1.19, Perl 5.008008)</div><div>pstoimg: Temporary directory is /tmp/l2h2015</div><div>pstoimg: Processing /tmp/l2h2015/image001.ps</div><div>pstoimg: EPSF dimensions are 211x19</div><div>pstoimg: Running /usr/local/bin/gs -sDEVICE=ppmraw -g338x31 -r115 -dTextAlphaBits=4 -sOutputFile=/tmp/l2h2015/p2046.pnm </div><div>GS>-133 -702 translate</div><div>GS>(/tmp/l2h2015/image001.ps) run</div><div>GS>showpage</div><div>GS>quit</div><div><br></div><div>GPL Ghostscript 8.62 (2008-02-29)</div><div>Copyright (C) 2008 Artifex Software, Inc. All rights reserved.</div><div>This software comes with NO WARRANTY: see the file PUBLIC for details.</div><div>GS>GS>>>showpage, press <return> to continue<<</div><div>GS>>>showpage, press <return> to continue<<</div><div>GS>Image "/tmp/l2h2015/p2046.pnm" is PPM, 338x31</div><div>Running "/sw/bin/pnmcrop -verbose < /tmp/l2h2015/p2046.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -l -sides | /sw/bin/pnmcrop -verbose -r -sides | /sw/bin/pnmcrop -verbose -l -sides | /sw/bin/ppmquant -floyd 256 | /sw/bin/pnmtopng -interlace -trans 'gray85' > img1.png"</div><div>pnmcrop: Background color is #b3b3b3</div><div>pnmcrop: cropping 2 rows off the top</div><div>pnmcrop: cropping 2 rows off the bottom</div><div>pnmcrop: cropping 1 col off the left</div><div>pnmcrop: cropping 2 cols off the right</div><div>pnmcrop: Background color is #000000</div><div>pnmcrop: Not cropping. No border found.</div><div>pnmcrop: Background color is #000000</div><div>pnmcrop: cropping 2 cols off the left</div><div>pnmcrop: Background color is #b3b3b3</div><div>pnmcrop: Not cropping. No border found.</div><div>pnmcrop: Background color is #b3b3b3</div><div>pnmcrop: cropping 227 cols off the left</div><div>Can't exec "pnmquant": No such file or directory at /sw/bin/ppmquant line 29.</div><div>pnmtopng: Error reading magic number from Netpbm image stream. Most often, this means your input file is empty.</div><div>pstoimg: Error: "/sw/bin/pnmcrop -verbose < /tmp/l2h2015/p2046.pnm | /sw/bin/pnmcrop -verbose -bot -sides | /sw/bin/pnmcrop -verbose -l -sides | /sw/bin/pnmcrop -verbose -r -sides | /sw/bin/pnmcrop -verbose -l -sides | /sw/bin/ppmquant -floyd 256 | /sw/bin/pnmtopng -interlace -trans 'gray85' > img1.png" failed: </div><div>Debug (syswait): Finished child process: #2046</div><div> at ../latex2html line 4230</div><div><br></div><div>Error while converting image</div><div><br></div><div>Doing section links ................</div><div> *** Adding document-specific styles *** </div><div>Done.</div><div><br></div><div>To view the results, point your browser at:</div><div>file:/Users/christian/Downloads/latex2html-2008/tests/l2htest/index.html</div><div>Timing: 1 seconds</div></div><div>####################</div></body></html>