alexdu / ARM-console

Firmware analysis console for Magic Lantern
http://magiclantern.wikia.com/wiki/GPL_Tools/ARM_console
16 stars 2 forks source link

SVG as <img> #2

Open piersg opened 13 years ago

piersg commented 13 years ago

... if we're (at least for now) madating a WebKit browser, we can just make the SVG an img tag. Webkit inlines and autosizes them just like any other image.

Long term, we'll need to include the dimensions in an tag. And link to one of those libraries that enable svg in IE [raucous laughter]

alexdu commented 13 years ago

Right now, the SVG is included like this:

and this SVG file starts with: <svg width="366pt" height="528pt" ...

Yes, it's a good idea; however, I still use Firefox for browsing autoexec.bin HTMLs. And it's possible that Firefox under Windows is fast enough (on my old P4, FF was much faster under windows for the same web pages). Is it possible to include both, so that each browser chooses what's best for itself?

piersg commented 13 years ago

OMG - did Adobe help write Firefox? ;-)

I think should work on both - I'm building the considerable number of dependencies before I can run/modify the script so I haven't tried it, but that's the official way (i.e. there is no official way where the browser works out the size for you).

It's also quite possible to just drop in a JS hack to detect browser and make it img or object accordingly, but that's not very long term ...

alexdu commented 13 years ago

Building? I've installed almost all of them with easy_install... As long as you already have the ML build environment, the python libraries should not be difficult to install.

Which library did you have to build?

alexdu commented 13 years ago

Just noticed that SVG snipped was not visible => edited that comment.