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