gngr icon indicating copy to clipboard operation
gngr copied to clipboard

Support for SVG images

Open hrj opened this issue 9 years ago • 9 comments

Need to add support for:

  • Embedded SVGs
  • SVG images

Pure Java libs:

hrj avatar Jul 27 '16 02:07 hrj

You can use TwelveMonkeys too, it relies on Batik under the hood.

ghost avatar Oct 11 '16 11:10 ghost

My main concern with Batik is that it has a huge list of dependencies. Atleast the version I looked at did. We don't need the networking capabilities of Batik, which is where most of the dependencies are likely to get pulled in (commons-http et al). I had a crazy idea of patching Batik to only deal with ByteInputStream, and removing any other irrelevant stuff.

hrj avatar Oct 14 '16 14:10 hrj

i want to contribute in this.

anii1234 avatar May 13 '17 13:05 anii1234

@anii1234 Sure, give it a try and send a PR, even if it is just a start. Simple SVG support is sufficient to begin with. I would prefer using SVG Salamander or a modified Batik with fewer dependencies.

hrj avatar May 20 '17 04:05 hrj

JFreeSVG seems to be a good option apparently faster than batik. Is this still up for grab?

stellargo avatar Aug 14 '17 17:08 stellargo

@stellargo JFreeSVG sounds good. Feel free to pick this up!

hrj avatar Aug 14 '17 18:08 hrj

Ok I will be working on it !

stellargo avatar Aug 14 '17 18:08 stellargo

Well it seems a pretty distorted version of webpages is opening up and google images is not even working

stellargo avatar Aug 14 '17 20:08 stellargo

Yup, this browser is very much a work-in-progress and layout improvements are on top of the priority list.

But SVG rendering could be implemented pretty independently of the layouting algorithms. You could see how inline images are implemented currently and use a similar approach for inline SVGs.

hrj avatar Aug 15 '17 17:08 hrj