Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@deboer-tim
Copy link
Collaborator

There's a very small chance that an SVG just contains a low res image, but in all other cases SVGs are better: the file download time is less, loading is less, and generating an image of any exact size should be comparable to png scaling. This change always picks an SVG as 'best' if one exists in a file reference list, regardless of requested image size.

There's a very small chance that an SVG just contains a low res image, but in all
other cases SVGs are better: the file download time is less, loading is less, and
generating an image of any exact size should be comparable to png scaling. This
change always picks an SVG as 'best' if one exists in a file reference list,
regardless of requested image size.
@deboer-tim deboer-tim changed the title https://github.com/icpctools/icpctools/compare/deboer-tim:svg-priority...mainAlways prefer SVGs Always prefer SVGs Aug 29, 2025
Copy link
Collaborator

@vmcj vmcj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make an issue to detect PNGs in SVG for that one edgecase where this is worse.

@deboer-tim deboer-tim merged commit cafdfc4 into icpctools:main Aug 30, 2025
4 checks passed
@deboer-tim deboer-tim deleted the svg-priority branch August 31, 2025 07:33
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.

3 participants