Generalseeking advice on images

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
neilhwatson
Posts: 2
Joined: Thu Oct 09, 2008 3:40 pm

seeking advice on images

Post by neilhwatson »

Hi Folks,

I'm seeking advice on how best to handle images. Typically I include images created via Graphviz (dot). For a recent document I included images as pdf files after converting them from dot's ps output. When I make my final document as a pdf file the images are of the highest quality. Must better than if I were to use png images.

If I want my final document to be HTML (hevea or latex2html) I run into problems. When it comes to processing images these tools do not seem to be able to handle included pdf images (see below). I would like to have a single tex file that can produce both pdf and html output. Is this possible? What is the best way?

Image conversion problems:

Code: Select all

Generating postscript images using dvips ...
This is dvips(k) 5.96.1 Copyright 2007 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.10.17:1233' -> /tmp/l2h11461/image
(-> /tmp/l2h11461/image001) </usr/share/texmf-texlive/dvips/base/tex.pro>
</etc/texmf/dvips/config/alt-rule.pro>
</usr/share/texmf-texlive/dvips/base/special.pro>
</usr/share/texmf-texlive/dvips/base/color.pro>[1<./manual-admin.pdf>] 
(-> /tmp/l2h11461/image002) </usr/share/texmf-texlive/dvips/base/tex.pro>
</etc/texmf/dvips/config/alt-rule.pro>
</usr/share/texmf-texlive/dvips/base/special.pro>
</usr/share/texmf-texlive/dvips/base/color.pro>[2<./scripted-admin.pdf>] 
(-> /tmp/l2h11461/image003) </usr/share/texmf-texlive/dvips/base/tex.pro>
</etc/texmf/dvips/config/alt-rule.pro>
</usr/share/texmf-texlive/dvips/base/special.pro>
</usr/share/texmf-texlive/dvips/base/color.pro>[3<./config-admin.pdf>] 
Converting image #1
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h11461/p11476.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans '#d9d9d9'  > img1.png" failed: Bad file descriptor

Error while converting image
Converting image #3
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h11461/p11484.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans '#d9d9d9'  > img3.png" failed: Bad file descriptor

Error while converting image
Converting image #2
pstoimg: Error: "/usr/bin/pnmcrop -verbose  < /tmp/l2h11461/p11492.pnm | /usr/bin/ppmquant -floyd 256 | /usr/bin/pnmtopng -interlace -trans '#d9d9d9'  > img2.png" failed: Bad file descriptor

Error while converting image

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply