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

Much larger file on Safari(Mac) or iOS compared to Chrome(Mac) #459

Open
leitejppb opened this issue Mar 28, 2024 · 1 comment
Open

Much larger file on Safari(Mac) or iOS compared to Chrome(Mac) #459

leitejppb opened this issue Mar 28, 2024 · 1 comment
Labels

Comments

@leitejppb
Copy link

Current Behavior

I'm currently having an issue when generating an image with html-to-image on iOS as it takes quite a long time compared to Android.
I was able to reproduce it using Safari on Mac versus using Chrome
I've noticed that regardless of the quality settings or formats or any other property that I pass on the options object, the image file size generated initially on Safari is much larger than in Chrome.
On a small image, on Safari the file size can be around 8/9 MBs while on Chrome it can be around 200/300 KBs
This is also impacting the time to get the final screenshot as the request is much larger.

Did anyone run into the same issue?

Steps To Reproduce

  1. Use html-to-image on Safari
  2. Check Network tab to see the requests when the screenshot is taken
  3. Compare with Chrome

Your Environment

  • html-to-image: [e.g. 1.11.11]
  • OS: [macOS Sonoma 14.4.1]
  • Browser: [safari 17.4.1]
@leitejppb leitejppb added the bug label Mar 28, 2024
@vivcat
Copy link
Contributor

vivcat bot commented Mar 28, 2024

👋 @leitejppb

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant