[l2h] \htmlimage problem

Ross Moore ross at ics.mq.edu.au
Wed Feb 18 07:33:12 CET 2009


Hello Christian,

On 18/02/2009, at 4:54 PM, Christian wrote:

> Hi list,
>
> when I use the following (finaltexsis01 is a png):
> ----------
> \begin{htmlonly}
> \begin{figure}
> \htmlimage{thumbnail=0.5}
> \centering
> \includegraphics[keepaspectratio,width=10cm]{finaltexsis01}		
> \end{figure}
> \end{htmlonly}
> ----------
>
> I always get the error:
> ----------
> *** processing 1 images ***
>
> Generating postscript images using dvips ...

  dvips  cannot process .png images.

But you don't need to do any processing at all with a .png
as you can simply link to it.

You should be using  \htmladdimg  with LaTeX2HTML,
to specify that you want this image to be shown.
Consult the LaTeX2HTML documentation to see how to
use this, and how to specify the various options that
are available when linking to images.

> This is dvips(k) 5.97 Copyright 2008 Radical Eye Software  
> (www.radicaleye.com
> )
> ' TeX output 2009.02.18:0652' -> /tmp/l2h64527/image
> (-> /tmp/l2h64527/image001)
> </usr/local/texlive/2008/texmf/dvips/base/tex.pro>
> </usr/local/texlive/2008/texmf/dvips/base/special.pro>
> </usr/local/texlive/2008/texmf/dvips/base/color.pro>[1]
> Converting image #1
> pstoimg: Error: "/sw/bin/pnmcrop -verbose  < /tmp/l2h64527/p64546.pnm
> | /sw/bin/ppmquant -floyd 256 | /sw/bin/pnmtopng -interlace -trans
> 'gray85'  > img1.png" failed: Invalid argument
>
> Error while converting image: No such file or directory
> ----------
>
>
> Is there a way to fix this and get a linked thumbnail?

Yes, but not using  \includegraphics .

You want to link to the image at a small size,
making it an active link to a full-sized version.

>
> Thanks
> Christian


Hope this helps,

	Ross

------------------------------------------------------------------------
Ross Moore                                       ross at maths.mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------





More information about the latex2html mailing list