Comments (5)
Off course!
JSFiddle: https://jsfiddle.net/cesarphernandez/rdx1ztew/118/
In this case, I try to render the content of the DOMElement and his Childs, and after this, I generate a url blob to see the result in the browser.
In Google Chrome, not have a problem, but in Safari, is aleatoreously some times it works fine, in other cases fail
Attach our video of evidence: https://share.cleanshot.com/4DvVmS26
As I comment, the problem is random, possible need to try some times to replicate it
from dom-to-image-more.
Not sure what you're doing with the URL.createObjectURL stuff, seems to be something jsFiddle offers... but it looks like it's always returning the PNG to me every time... I've tweaked the fiddle... can you try on Safari?
https://jsfiddle.net/7ykfet6c/
from dom-to-image-more.
In. this case I use URL.createObjectURL, to generate a blob Url to use in the same browser, is more to can view more easy the result, but how I showed u, There are cases in where works fine, but not always and we need that works fine always
I was try with your link, but not works in the first generation of Image, attach our video
https://share.cleanshot.com/JYN7cQ2D
I believe that what happens is that not works fine, when div is change or loaded by first time ,In my case is a use library to generate images with many changes in these divs, and I believe that this error is reproduced when div is change
from dom-to-image-more.
Would need a LOT more information to help. Can you get a time when it fails and snag the HTML, CSS, JS and make a jsfiddle
from dom-to-image-more.
@IDisposable Have u some update at now?
from dom-to-image-more.
Related Issues (20)
- Can I use this library without npm or module? Just plain html HOT 2
- On firefox toPng returns empty image HOT 1
- make it posible to shift
- Icon to image display failed HOT 1
- TypeError: Cannot read properties of undefined (reading 'setProperty')
- Error using toPng with extra quote in HTML
- The internal picture is blank HOT 2
- border HOT 10
- Cannot convert webgl
- Need embed fonts to be optional
- Browser crashes when using toPng
- Image is cropped in Firefox HOT 3
- cssRules from google CSS breaking HOT 1
- TypeError:Failed to execute 'readAsDataURL' on 'FileReader' : parameter 1 is not of type 'Blob' HOT 7
- Bug: get wrong pic from image jsp
- domtoimage doesn't work on vector layer
- Exporting blank image when element's parent has visibility hidden
- Dom-to-image conversion results misaligned content in Image for CSS flex styles
- domtoImage converts only first child element when cloneNode(true) is used
- Unavaible to override existing CSS style within the adjustClone function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dom-to-image-more.