On 02/07/2011 03:43 PM, Rob Oakes wrote:
Hi Richard,

The width and height tags should just be output in the InsetGraphics::xhtml() routine, and it should be pretty clear where.

I spent a little time playing with this and came up with a solution that meets my needs pretty well. It adds a "style" tag to the declaration and then specifies the height and width options.

This was added to the InsetGraphics::xhtml() routine.
<snip>

That looks pretty good, and I can cut and paste it into InsetGraphics.cpp. So I've done that, thanks.

Eventually, I really would like to be able to use ImageMagick actually to convert the file: rotate and crop, too, as in LaTeX. That should be fairly straightforward, but I haven't done the work yet to be sure how to do it. If you're up for another challenge, this would need to happen in InsetGraphics::prepareHTMLFile(). At the moment, the converter routines don't accept the sorts of parameters we need to pass, so I think what we would have to do is (a) convert to the right format and then (b) convert again, using a call to some script which we may also have to provide, since convertDefault.py does not presently accept the sorts of arguments we need to pass. I suppose one could just modify it, though.

Richard

Reply via email to