feat: add GPU fallback compression and upload controls#1
Open
deanxbox wants to merge 5 commits into
Open
Conversation
deanxbox
commented
Apr 30, 2026
- prefer hardware encoders with CPU fallback
- add compression ETA and size delta reporting
- support cancelling compression and pending uploads
- read compressed output through native IPC instead of file URLs
- prefer hardware encoders with CPU fallback - add compression ETA and size delta reporting - support cancelling compression and pending uploads - read compressed output through native IPC instead of file URLs
- Support JPEG, PNG, and WebP compression in-browser - Add KB/MB/GB controls for compression target and threshold - Improve upload cancellation tracking for pending uploads - Prevent duplicate handling of paste/drop batches - Update progress overlay positioning and sizing - Refresh README notes for image support and size units
Add compression mode, failure fallback, original fallback, and concurrency settings Support custom image/video dimensions and optional hardware decoding Add diagnostics report button for ffmpeg/GPU troubleshooting Show post-compression previews and improve upload cancellation handling Document new settings and behavior in README
Add an uploadIfSmaller setting to keep compressed output when it is smaller than the original, even if it exceeds the configured target. Also improve result notes for above-target outputs, upload original fallbacks regardless of target size, tune media bitrate handling, clear progress estimates on stop, and remove noisy encoder detection logs.
- Add optional "Prompt to compress after every media insertion" setting - Allow users to choose between compression and uploading originals per insertion - Improve format detection to check file extensions in addition to MIME types - Add bitrate scaling retry logic to get compressed files closer to target size - Refactor image compression into reusable compressCanvasToTarget function - Auto-select MP4 or M4A output format based on media type - Improve ffmpeg metadata handling with selective removal - Support GIF files as video media
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.