Bug when exporting with background image
belugawhale3 opened this issue · 1 comments
Describe the bug
If you export the background image the background picture will not scale correctly.
To Reproduce
Steps to reproduce the behavior:
-
Use any image url for the background image (for example: https://upload.wikimedia.org/wikipedia/en/d/d4/Mickey_Mouse.png)
-
click export image
-
Background image is not exported with correct scale shown on canvas
-
Set xMinYMin for preserveBackgroundImageAspectRatio
-
click export image
Expected behavior
Image should export like so when not using preserve background image ratio
Image should export like so when using xMinYmin
Desktop (please complete the following information):
- Windows
- Chrome
I think I found the fix, react canvas has trouble reading from blob url, if you pass it as a data url instead it works correctly.