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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply