Comments (2)
what do you mean by "error status 201"? is it HTTP status 201? or you're getting an error while rendering? how can I reproduce that?
from dom-to-image.
It's the error I get from Chrome developer's console.
dom-to-image.js:468 cannot fetch resource: https://localhost:8443/data/assets/image/1;jsessionid=783BE8EAD782556F7EBD8240A60CFC10, status: 201
undefined:1 Uncaught (in promise) Event {isTrusted: true, type: "error", target: null, currentTarget: null, eventPhase: 0…}
and the generated img tag looks like this
<img id="o8112568d" alt="" src="/data/assets/image/1;jsessionid=783BE8EAD782556F7EBD8240A60CFC10">
But since I submit this bug report, I dug more into the issue and I think it boils down to the fact that the image is not a real file sitting somewhere in the server, but it's generated.
And that's why reproducing it for you is complicate. We're using JWT (Java Web Toolkit, not the json web token) to create an img tag via WImage class, which contains a reference to a dynamically generated image coming from a WRasterPaintDevice, hence not a real image file.
So you would need to setup a JWT webapp, in order to test it.
All I can say is that we're currently using html2canvas, and it works fine (but we don't like it as much as we do with domToImage ;) )
from dom-to-image.
Related Issues (20)
- Most of the issues have been fixed in forked library `modern-screenshot` HOT 4
- toPng() throw error. HOT 8
- Super long HTML growth chart - Node images with height exceeding 16000 are blank HOT 2
- DomToPNG not working if dom contains %BB
- dom to image giving blank images HOT 3
- How to keep ratio without adding blank space around the image HOT 1
- Rendering svg
- The internal picture is blank
- Cookies not passed to image request
- It not support xlink:href for svg? HOT 1
- When there is a large DOM content, empty file download happening. Are there any limitations? HOT 3
- the image some time cutting and some time show correct HOT 1
- sometimes image in HTML is big,domtoimage will show blank image in IOS not Android
- DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported
- DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported HOT 1
- Full Scrollable (CLOSED)
- shadow-root not rendered. HOT 1
- Exporting to PNG does not check checkboxes
- domtoimage doesn't work on vector layer
- Error while converting dom to image HOT 1
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.