question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSS involving transformX and perspective generates quarter size partially styled image on large black background

See original GitHub issue

CSS involving transformX and perspective generates quarter size partially styled image on large black background

Expected Behavior

Screenshot 2021-01-28 at 16 42 19

Current Behavior

image

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:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
andreyk-codecommented, Feb 17, 2021

Have you tried setting pixelRatio flag? That may help here.

htmlToImage.toJpeg(document.getElementById('pitch-box'), { quality: 0.95, pixelRatio: 1 })

0reactions
vivcat[bot]commented, Apr 23, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found