Giter Club home page Giter Club logo

Comments (4)

exupero avatar exupero commented on May 24, 2024

Thanks for reporting this. Can you supply some example code that demonstrates this problem? I'd like to add a test case for it. Personally, I haven't tried gradients, but I would expect it to work so I don't know where it's breaking down.

from savesvgaspng.

arjun010 avatar arjun010 commented on May 24, 2024

Hey, thanks for getting back. I've made a quick fiddle with just one line . It can be found here: https://jsfiddle.net/arjun010/c5tyykjr/

I wasn't sure how to add the saveSvgAsPng file on jsFiddle ( I can attach a zip of the test project folder if you want me to do that)

Just to give you a little more info about something I tried, I thought the download was getting messed up because I had my tag outside the visualization svg. So I changed it and put it inside the svg. When I run that, I get the error:

Uncaught URIError: URI malformed

in the reEncode(data) function in your code. Not sure what I'm missing. I would really appreciate any help with respect to this.

from savesvgaspng.

exupero avatar exupero commented on May 24, 2024

The URIError was caused by the percent signs within the SVG. I've pushed a fix to handle them correctly. Let me know if that solves the problem.

from savesvgaspng.

arjun010 avatar arjun010 commented on May 24, 2024

Works like a charm!!
Thanks a ton for the help and this library.

from savesvgaspng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.