Paul Smith wrote:

> Helge Hafting wrote:
>>>> In the "parameters" field (for fig2dev) of the dialog box where you
>>>> set the filename you can set an "-m" scaling option - for instance,
>>>> "-m 0.5" to halve its size.
>>>
>>> Thanks, Mark. I had already tried that, but it does not work, i.e.,
>>> the picture appears in DVI file with the original size. (Try to insert
>>> the same picture twice, one with "-m 0.5" and the other one without
>>> "-m 0.5"; you will see no difference.)

[ details snipped ]

> Thanks, Helge. Your workarounds do work fine. I do not need (at least
> currently) to insert the same picture twice; I only mentioned that to
> show _more_ clearly that something was wrong.

Note also that the ability to pass options to the converter program used by
the external inset has been removed from 1.4.x. The 1.4.x code uses the
same 'converter' mechanism as is used by the rest of lyx (eg the graphics
inset). We had, therefore, to remove this option code because it opened up
a security risk. (Your 1.3.x code is safe, BTW.)

This will change back again in the future (maybe in time for 1.4, but
probably not) when all external programs are launched via the safe 'exec'
family of functions rather than the unsafe 'system' command.

Rationale: imagine a lyx file that resulted in a call to the converter
        convert `rm -f *` input.eps output.png

The above is fine if lauched via 'execvp' but will be rather nasty if
lauched via 'system'.


-- 
Angus

Reply via email to