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

Remove default styles #71

Merged
merged 2 commits into from
May 12, 2022
Merged

Commits on May 11, 2022

  1. Remove default styles from raster images to improve performance

    getComputedStyle returns about 340 CSS styles, almost all of which are default styles. Omitting these default styles from the raster image computations makes screenshots 60% faster and shortens the image data URIs by 11x in length.
    joswhite committed May 11, 2022
    Configuration menu
    Copy the full SHA
    ff896eb View commit details
    Browse the repository at this point in the history
  2. Make toCanvas not use CSS reduction

    `raster=true` is now applied to all methods besides `toSvg`, which was the original intention.
    joswhite committed May 11, 2022
    Configuration menu
    Copy the full SHA
    673851b View commit details
    Browse the repository at this point in the history