New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opacity #717
Comments
It depends on how you are using the opacity. Put a example using jsfiddle. |
I've been trying to get Opacity to work too and it doesn't appear to maintain it. I have an image in a div. The div has inline css |
@Dayjo Browser? OS? x86 or x64? Put a jsfiddle example please =) |
OSX 10.11.4 Edit: OK so I seem to have resolved this by adding some extra CSS to the img tag. I've set explicitally; display: block;
position: static; And now images support the opacity, though not sure why it needs to be block, and position: relative seems to actually stop it from working. Other elements that are not position:relative (i.e. a div with some text in) were working fine. |
Here is a jsFiddle exemplifying the issue: http://jsfiddle.net/tqqaa16x/. I'm struggling with this as well. |
Opacity doesn't seem to work with the simplest of examples: |
@niklasvh Still having the same issue using version 1.0.0-alpha.12 I have a div with rounded corners, the website background is dark but on the saved image it has white corners when they should be transparent. |
This is also not working for me. Opacity is lost. |
You should use the background-color: rgba(x,x,x,opacityValue) replace for opacity css style should be resolve your problem. |
this link is not working now! |
I can confirm that opacity is still not working in the latest release: 1.0.0-rc.7. Perhaps we can get this ticket re-opened? |
Use this version: https://github.com/niklasvh/html2canvas/suites/1187063696/artifacts/17429870 , Opacity will be work. |
What exactly is this that you linked me to? I opened it up and it says it's v1.0.0-rc.7... |
version name is same but in this js file, opacity bug is fixed. |
Perhaps you could make a pull request so the entire community can benefit from this fix and we can continue to utilize yarn (or npm) for the html2canvas dependency? |
@niklasvh I just started using html2canvas in my project and it's great! But I am also running into this opacity bug - does the bundle above fix this issue / is there any chance you could release it and update the released npm package? |
@davidswinegar this worked for me. The last number being the opacity
|
Yess! The best and fast solution! Thanks!! |
Hi,
I should create a canvas from webpage and I found your plugin, it works very well but I want say if it is possible to maintain the opacity of each element. In this moment it doesn't work.
Best Regards
The text was updated successfully, but these errors were encountered: