I have a simple test file that includes a PNG graphic. Generating a PDF
file works fine. However, when I try to produce a DVI file, ConTeXt mis-
identifies the PNG file as EPS. I'd like to know why and what can be
done, if anything?

Here is the test file:

\traceexternalfigurestrue
\starttext
\startfiguretext[right][fig:example]
{none}
{\externalfigure
  [zzz.png]
  [width=2in,height=1in]
}
This is a test.
\stopfiguretext
\stoptext

In the log file, I get the following when generating the PDF file:

systems        : begin file 00_master at line 3
 <./zzz.png>
figures        : dimensions of ./zzz.png loaded from figurefile itself

[locating ./zzz.png as png] [analyzing ./zzz.png on . as png] [found] [./zzz.pn
g: t={png} m={png} l=dummy w=9472573 h=4736286 sx=73.2 sy=75.0 ox=\scratchdimen
  oy=\scratchdimen ] (./00_master.tuo)
floatblocks    : 1 placed

and, as I said, this works fine - ConTeXt has correctly identified the
files as PNG and found the correct dimensions and scale factors.

When producing a DVI file, the equivalent extract from the logfile is:

systems        : begin file 00_master at line 3
figures        : figure ./zzz.png has zero dimensions
figures        : dimensions of ./zzz.png loaded from figurefile itself

[locating ./zzz.png as eps] [analyzing ./zzz.png on . as eps] [zero] [found] [.
/zzz.png: t={eps} m={eps} l=dummy w=9472573 h=4736286 sx=0.09999 sy=0.09999 ox=
\scratchdimen  oy=\scratchdimen ] (./00_master.tuo)
floatblocks    : 1 placed

This doesn't work, presumably because ConTeXt is mis-interpreting the
file as EPS and messing up the scale factors. What I would like to know
is where/why this is happening?

As far as I can tell, the file core-fig.tex contains the relevant code.
However, my knowledge of (Con)TeX is obviously not good enough because I
don't understand how this code is driver specific? If anyone can shed
any light on this then I would be most grateful.

Version info:
This is pdfeTeX, Version 3.14159-14f-released-20000525-2.1 (MiKTeX 2.1) (preloaded 
format=cont-en 2001.12.30)  30 DEC 2001 16:53
ConTeXt  ver: 2001.12.20  fmt: 2001.12.30  int: english  mes: english

Thanks in advance.
-- 
Bruce Horrocks
Hampshire
England
[EMAIL PROTECTED]

Reply via email to