[l2h] images conversion problems
Rafal Maszkowski
Rafal Maszkowski <rzm@icm.edu.pl>
Sat, 14 Aug 1999 03:03:51 +0200
I heve conversion problems. HTML is created correctly but the images not. I
tried various versions without success, now I have installed 99.2alpha9. The
critical moment seems to be
extracting tex2html_wrap51 as 1#1Converting image #1
FIGURE: tex2html_wrap51 scaled 1.6
Debug (syswait): Running "/usr/bin/perl /usr/local/bin/pstoimg -type gif -debug -tmp /tmp/l2h23842 -aaliastext -geometry 348x69
-margins 72,72 -scale 1.6 -out img1.gif /tmp/l2h23842/image001.ps"
at /usr/local/bin/latex2html line 4069
pstoimg V99.2alpha9 (Revision 1.8, Perl 5.00405)
pstoimg: Temporary directory is /tmp/l2h23842
pstoimg: Processing /tmp/l2h23842/image001.ps
pstoimg: Page dimensions are 842x595
pstoimg: Running /usr/bin/gs -sDEVICE=ppmraw -g582x151 -r115 -dTextAlphaBits=4 -sOutputFile=/tmp/l2h23842/p23864.pnm
GS>-67 -446 translate
GS>(/tmp/l2h23842/image001.ps) run
GS>quit
Aladdin Ghostscript 5.50 (1998-9-16)
Copyright (C) 1998 Aladdin Enterprises, Menlo Park, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>GS>>>showpage, press <return> to continue<<
GS>Image "/tmp/l2h23842/p23864.pnm" is PPM, 582x151
Running "/usr/bin/pnmcrop < /tmp/l2h23842/p23864.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/ppmtogif > img1.gif"
pnmcrop: cropping 151 rows off the top
pnmcrop: cropping 581 cols off the left
ppmquant: making histogram...
ppmquant: 0 colors found
ppmquant: choosing 256 colors...
ppmtogif: EOF / read error reading magic number
pstoimg: Error: "/usr/bin/pnmcrop < /tmp/l2h23842/p23864.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/ppmtogif > img1.gif" fai
led: Illegal seek
Debug (syswait): Finished child process: #23864
at /usr/local/bin/latex2html line 4069
The image001.ps from dvips contains the original image surrounded with
grayness. /tmp/l2h23842/p23864.pnm made by gs contains only gray color and
pnmcrop can olny crop out everything. Maybe the translation or geometry is
wrong, I cannot find out where they are from. Some lines before I see
latex2htmlLength hsize=349.0pt
latex2htmlLength vsize=469.755pt
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=18.0pt plus 4.0pt minus 4.0pt
latex2htmlLength oddsidemargin=0.0pt
latex2htmlLength evensidemargin=0.0pt
<ceenet1.ps>
l2hSize :tex2html_wrap51:69.65546pt::0.0pt::349.0pt.
so I guess the numbers for pnmtops are maybe somewhat derived from above. The
original tex source is:
%% This LaTeX-file was created by <rzm> Thu Aug 12 08:10:26 1999
%% LyX 1.0 (C) 1995-1999 by Matthias Ettrich and the LyX Team
%% Do not edit this file unless you know what you are doing.
\documentclass[landscape,dvips]{foils}
\usepackage[T1]{fontenc}
\pagestyle{foilheadings}
\usepackage{graphics}
{\usepackage{url}}
{\newcommand{\url}{\texttt}}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[latin2]{inputenc}
\makeatother
\begin{document}
\title{Multicasting}
\author{Rafał Maszkowski <rzm@icm.edu.pl>}
\maketitle
\begin{quotation}
{\par\noindent \centering \resizebox*{0.2\textwidth}{!}{\includegraphics{ceenet1.ps}} \par}
\end{quotation}
{\par\noindent \centering Budapest, August 1999\par}
\end{itemize}
\end{document}
It is shorten LyX output. The image you get get via the Net if intererested:
ftp://sunsite.icm.edu.pl/private/rzm/ceenet/ceenet1.ps.gz
Any ideas? The slides I am writing are in landscape mode. Maybe some rotation
problems? I will be happy to send you the whole log or whatever is needed to
solve the problem.
R.