Giter Club home page Giter Club logo

Comments (7)

exupero avatar exupero commented on May 24, 2024

I will investigate the problems with Firefox and Opera.

As far as I know, the script does not work in IE. It throws a security exception when generating the data URI for a canvas. There are unconfirmed reports that it does work, but I've not been able to reproduce.

from savesvgaspng.

exupero avatar exupero commented on May 24, 2024

It looks like Firefox doesn't fully respect unitless font sizes in style tags.

from savesvgaspng.

exupero avatar exupero commented on May 24, 2024

It doesn't appear that Opera 12 fully supports SVG.

On both your page and the test page, Opera 12 throws a DOM exception (SYNTAX_ERR) when executing the following line in jQuery v1.11.1:

div.querySelectorAll("*,:x");

All appears to work in the new version of Opera, which is built atop Chromium.

from savesvgaspng.

PjotrC avatar PjotrC commented on May 24, 2024

Thank you for pointing out the issue with Firefox.

Btw:
What is the difference between "bjpop/saveSvgAsPng" and "exupero/saveSvgAsPng"?

from savesvgaspng.

exupero avatar exupero commented on May 24, 2024

It looks like the bjpop/saveSvgAsPng is an outdated clone of this repo (most recent commit is late June).

from savesvgaspng.

Cartman666 avatar Cartman666 commented on May 24, 2024

Hi,

This script saved my day, however, do you think the IE issue is solvable?

from savesvgaspng.

exupero avatar exupero commented on May 24, 2024

In my testing, IE considers the critical step canvas.toDataURL() to be a security error. It's possible that behavior is configurable, or that a browser extension could disable it, but knowing for certain would take someone more versed in IE than me.

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.