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
html2canvas border radius not applying to img tag #399
Comments
@niklasvh pls advice |
mhm, border radius 100%? On Sun, Jun 15, 2014 at 6:41 PM, faiq-naseem notifications@github.com
|
@DavidBruchmann we can use 100% but even 100px is not working |
See demo Generated image should same as preview image |
ok, now I understand. |
nothing happens even smaller than 50%. |
what if you add a border like border: 1px solid black; ? |
i want border-radius, not border only :) Image should be rounded, which can only be done from border-radius |
ok, seems I can't help here. |
FYI, seems exactly the issue reported in #346. |
Fixed |
I met the same problem with you, and then, have you solve the problem? |
The following functions can solve this problem: This is due to the different of screen pixels ratio, iPhone screen is 2, PC display is 1, and Android screen is 1.5, |
Need help, when i apply border radius to image via css, Not rendering.
<style> #mydiv { width: 300px; height: 200px; background:#000; } #mydiv img { width: 200px; height: 200px; border-radius:100%; } </style>See demo
http://faiqnaseem.com/html2canvas/
Resultant displayed image not showing border radius,Just without radius i need to apply radius only through this method.
if i used image as background, it works but i need to put image in div tag, it is dynamically adding from database..
The text was updated successfully, but these errors were encountered: