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 issue with svg import of raster images #1452

Merged

Conversation

park9140
Copy link
Contributor

@park9140 park9140 commented Mar 1, 2018

Description

When importing rasters after load if the image has a matrix with any translation/skew value
the image will calculate the wrong matrix after loading.

In order to correct this we append the translation rather than prepend so
that it happens in the correct order relative to the transformation.

Related issues

Checklist

  • [ x ] New tests added or existing tests modified to cover all changes

When importing rasters after load if the image has a matrix with any translation/skew value
the image will calculate the wrong matrix after loading.

In order to correct this we append the translation rather than prepend so
that it happens in the correct order relative to the transformation.
@park9140 park9140 force-pushed the fix-issue-with-svg-import-of-raster-images branch from 5bcb3a5 to 74bb49d Compare March 2, 2018 00:20
@park9140
Copy link
Contributor Author

park9140 commented Mar 2, 2018

Tests on this would pass if develop branch were passing.

Would really love to have an npm package update with this fix.

@lehni lehni self-assigned this Mar 2, 2018
@lilltiger
Copy link

Awsome! I am egaerly waiting for this patch, right now I am using ugly hacks to circumvent the issue.

But how does #1348 relate to this issue?

@park9140
Copy link
Contributor Author

park9140 commented Mar 2, 2018

@lilltiger Oh good catch, I typed 1348 rather than #1328. Fixed. I have a copy of this built in a branch on my fork that i'm installing from for now. Branched off of the v0.11.5 tag

@lehni
Copy link
Member

lehni commented Mar 6, 2018

LGTM, thanks @park9140 !

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.

None yet

3 participants