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

Fix OverflowErrors when pre-applying transform to radial gradient geometry #448

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anthrotype
Copy link
Member

WIP, will add test soon

@anthrotype anthrotype marked this pull request as draft March 14, 2023 15:32
s = max(*scale.getscale())
# we take the minimum of (sx, sy) to try to minimize the risk of OverflowErrors
# when encoding these to F16Dot16
s = min(*scale.getscale())
Copy link
Collaborator

Choose a reason for hiding this comment

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

I immediately wonder if we should try both?

@rsheeter
Copy link
Collaborator

Capturing @anthrotype's idea from this morning, we should make test inputs with big upem to exacerbate the problem

@rsheeter
Copy link
Collaborator

Thinking "aloud" I wonder if SVD on the transform would make it easier to assemble a stack of transforms that work ... e.g. SVD, then search for parts you can put back together to minimize the # of paints you end up with

@anthrotype anthrotype changed the title take the min(sx,sy) when decomposing scale transform to minimise OverflowErrors Fix OverflowErrors when pre-applying transform to radial gradient geometry Mar 28, 2023
@anthrotype anthrotype force-pushed the fix-radial-overflow-error branch from 7a73f25 to 7ec0f1b Compare March 28, 2023 15:16
@anthrotype anthrotype force-pushed the fix-radial-overflow-error branch from 7ec0f1b to 10671af Compare March 28, 2023 17:07
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.

2 participants