[EMAIL PROTECTED] wrote:

> Hi Angus,
> why do we need to move the graphics to
> the temporary directory?
> 
> This I don't get. (And many other things
> as well ;-).
> 
> /me puzzeled. :-)

Let's call it 'an accident of history'. The code used to be much more 
convoluted than it is now. However, I think that the primary reason 
is that InsetGraphics can handle compressed files and needs to 
uncompress them to ascertain the 'hidden' file format. Herbert just 
found it easiest to unconditionally copy the file and then play from 
there.

Note also the stuff about timestamps and checksums. Have a look at the 
code in InsetGraphics: it is anything but trivial. Have a look also 
at the equivalent code in InsetExternal (ExternalSupport.C). The 
use-case is simpler (I don't worry about .gz files) but it is still 
not trivial.

-- 
Angus

Reply via email to