Skip to content
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

replace modern-screenshot to html-to-image #2

Merged
merged 2 commits into from
Mar 18, 2023

Conversation

joshxfi
Copy link
Contributor

@joshxfi joshxfi commented Mar 18, 2023


It seems that modern-screenshot has compatibility issues with firefox. I replaced it with html-to-image and used useRef instead of getElementById.

@vercel
Copy link

vercel bot commented Mar 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
qrify ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 18, 2023 at 2:25PM (UTC)
qrify-szvf ❌ Failed (Inspect) Mar 18, 2023 at 2:25PM (UTC)

@Blankeos
Copy link
Owner

Thanks Josh! Merging it right away!

I opted for modern-screenshot because I initially had this issue with html-to-img on Safari:
bubkoo/html-to-image#369 (comment).

This usually happens if the dom element you want to render contains an <img /> element.

Although the quick fix for that was to run toPng 3x: bubkoo/html-to-image#361 (comment). Just a heads up for you as well if you run into the same bug with html-to-img on your projects.

I didn't catch that Mozilla incompatibility with modern-screenshot. Thanks for the changes!

@Blankeos Blankeos merged commit c981044 into Blankeos:main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

download image not working in firefox
2 participants