Comments (6)
that looks like a possibly nice feature, but there are too many different use cases. Should it be a text? Or an image watermark? There probably should be some parameters like position, orientation, opacity and so on. Can you elaborate?
from dom-to-image.
All what you state makes sense, but in our case we would go for image-type watermark
- src (file would come handy)
- x,y,width,height
thx for the consideration
from dom-to-image.
is it possible to add some feature like this:
https://www.youtube.com/watch?v=CRZst_Y_WoA
from dom-to-image.
I just wanted to add that #111 could be a solution for this too
from dom-to-image.
any update in this issue?? I can't use html2canvas since it doesn't render CSS properly in the image.
from dom-to-image.
If anyone's interested, there is a method you can add a watermark using a background image in the properties style object, however, the image url has to be base64.
E.g.
{
style: {
padding:'100px 40px 40px 40px',
backgroundColor: '#000',
backgroundPosition: 'center 30px',
backgroundSize: '140px',
backgroundRepeat: 'no-repeat',
backgroundImage: 'url("data:image/png;base64,<base64>"'
},
height: html.offsetHeight + 160,
width: html.offsetWidth + 80,
}
from dom-to-image.
Related Issues (20)
- Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. HOT 2
- 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
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.