Coder Social home page Coder Social logo

Comments (9)

micnic avatar micnic commented on May 14, 2024 1

@briandennis, thanks it works fine, you are awesome !

from carbon.

mfix22 avatar mfix22 commented on May 14, 2024 1

@nozzlegear opened #28 so you can track it (:

from carbon.

nozzlegear avatar nozzlegear commented on May 14, 2024

Also does not work in Edge (neither does the Tweet Image button).

from carbon.

briandennis avatar briandennis commented on May 14, 2024

@micnic I pushed a fix, it should be working on Firefox now.

@nozzlegear Is the Save Image button working on Edge now? I can check myself later today, but don't have access to Edge at the moment...

from carbon.

briandennis avatar briandennis commented on May 14, 2024

@micnic glad I could help!

from carbon.

briandennis avatar briandennis commented on May 14, 2024

Going to close this. Will reopen another issue if the problem on Edge persists

from carbon.

nozzlegear avatar nozzlegear commented on May 14, 2024

@briandennis I've done some investigating with Edge and it looks like the dom-to-image package isn't tested in and doesn't support Edge (or Safari I guess): tsayen/dom-to-image#78. Specifically the .toPng function fails with Edge complaining that the canvas is dirty.

I switched out .toPng() with .toSvg() which got me further, the browser was able to create the data URL. However I was unable to actually navigate to that data URL, download it or even just copy it to my clipboard to navigate there manually. It would just crash Edge instead.

Not sure how much work you want to put into this issue, it's probably just easier to add a note that Carbon doesn't support Edge!

from carbon.

mfix22 avatar mfix22 commented on May 14, 2024

@nozzlegear thanks so much for investigating. We plan to replace dom-to-image with a cross-browser solution. We really appreciate the work you did.

from carbon.

nozzlegear avatar nozzlegear commented on May 14, 2024

No problem! Looking forward to a cross browser Carbon.

from carbon.

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.