CSS involving transformX and perspective generates quarter size partially styled image on large black background
See original GitHub issueCSS involving transformX and perspective generates quarter size partially styled image on large black background
Expected Behavior
Current Behavior
Possible Solution
include support for 3d css effects
Steps To Reproduce
htmlToImage.toJpeg(document.getElementById('pitch-box'), { quality: 0.95 })
Your Environment
- html-to-image: ^1.3.21
- OS: [e.g. macOS BigSur 11.1
- Browser: Safari 14.0.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
image() - CSS: Cascading Style Sheets - MDN Web Docs
The image() CSS function defines an in a similar fashion to the url() ... A dark background color may be needed for foreground...
Read more >background-size
This demo shows examples of cover , contain , and multiple background images with a mix of pixel and keyword values. HTML; CSS....
Read more >How to draw a circle sector in CSS?
The circle has a radius of 110, making it a total of 220 wide (leaving a ... Put transform-origin: 50% 100%; This transforms...
Read more >How to change background-image opacity in CSS without ...
Quick solution to how you can change background-image opacity using CSS without affecting the text content or child HTML elements.
Read more >How To Scale and Crop Images with CSS object-fit
This image has an original width of 1200px and a height of 674px. Using img attributes, the width has been set to 600...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Have you tried setting pixelRatio flag? That may help here.
htmlToImage.toJpeg(document.getElementById('pitch-box'), { quality: 0.95, pixelRatio: 1 })
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.