<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hi all.<br>
<br>
I've been playing with the graphicx package trying to figure out how to
easily use non-postscript images in a latex doc. I know that I could
use pdflatex, but then I'd have the inverse problem. I want a universal
solution.<br>
<br>
&nbsp;I'd like to get \DeclareGraphicsRule to work, but it seems more
trouble to use than just converting each image file by hand.<br>
<br>
For example, if I want to use a .png file:<br>
\DeclareGraphicsExtensions{.png, .eps}<br>
\DeclareGraphicsRule{.png}{eps}{*}{`convert #1}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %% (the last arg
I've done in many different ways, e.g. {`convert #1 eps:- } )<br>
<br>
then, in the body:<br>
<br>
\includegraphics[width=1in]{myimage}&nbsp;&nbsp; %% (which is myimage.png)<br>
<br>
I get an error msg telling me that I there is no bounding box. So in
order to use it, I have to determine the bounding box for the image
first, and then include that info into one or the other command. &nbsp; But,
if I just do:<br>
<br>
&gt; convert myimage.png myimage.eps <br>
<br>
on the command line, it converts it without having to know the bounding
box info. I'm not sure why convert needs the bounding box info in one
case (latex) but not the other (command line).<br>
<br>
So, I'm not really getting the point of \DeclareGraphicsRule since
using it is much more trouble than converting by hand. Which brings me
back to my point, is there any easy way to use non-postscript images in
a latex doc? My best guess at this point is no, and the only way
forward is to re-write some of the graphicx commands to that they can
use the bounding box info generated by 'convert' or some other
conversion program.<br>
<br>
TIA for any help or discussion.<br>
<br>
Beverley Eyre<br>
<br>
<br>
</font></font>
</body>
</html>