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 export image with background issue #167

Closed
wants to merge 1 commit into from

Conversation

vinothpandian
Copy link
Owner

@vinothpandian vinothpandian commented Aug 17, 2024

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.

@vinothpandian vinothpandian changed the base branch from main to develop August 17, 2024 20:13
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).
@vinothpandian
Copy link
Owner Author

Copilot workspace did a bad job here. I'm going to close it and try again later.

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.

Canvas exports broken background image.
1 participant