-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix export image with background issue
Fixes #137 Update `loadImage` function to remove the `crossorigin` attribute in `packages/react-sketch-canvas/src/Canvas/index.tsx`. Modify `exportImage` function to handle protected URLs requiring cookies and ensure the background image is fully included in the exported image. Add test cases in `packages/tests/src/actions/export.spec.tsx`: * Verify the exported image includes the entire background image correctly. * Verify the exported image does not include the 'NA' symbol. * Verify the issue is resolved for both public and protected URLs. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/vinothpandian/react-sketch-canvas/issues/137?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
bcbb141
commit 7c52c1b
Showing
2 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters