Add browser-based image compression and 413 error handling#45
Merged
mikebarkmin merged 6 commits intomainfrom Nov 4, 2025
Merged
Add browser-based image compression and 413 error handling#45mikebarkmin merged 6 commits intomainfrom
mikebarkmin merged 6 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate image compression for learning map
Add browser-based image compression and 413 error handling
Nov 4, 2025
Member
|
@copilot only allow svg, png, webp and jpg files to be uploaded. |
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Contributor
Author
Member
|
@copilot add a changeset and update the changelog in the docs |
Co-authored-by: mikebarkmin <2592379+mikebarkmin@users.noreply.github.com>
Contributor
Author
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Images embedded as base64 in learningmaps can cause 413 (Payload Too Large) errors when sharing. This adds automatic compression and proper error messaging.
Changes
Image compression: Compress uploaded images via Canvas API before storing as base64
413 handling: Detect payload too large responses and show specific error message instead of generic failure
Translations: Add
uploadFileTooLargemessage (EN/DE) informing users they can download locally and share via other meansRelease management: Add changeset for v0.2.2 patch release and update documentation changelog
No new dependencies - uses native browser Canvas API.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.