Merge and Compress Images Without Uploading
Image pipelines on the server are powerful, but many day-to-day tasks only need a canvas and a file download: stitch screenshots, or squeeze a JPEG before attaching it to a ticket. Doing that locally avoids upload latency and reduces data exposure.
1. Merging: layout and limits
Vertical and horizontal layouts place each decoded image on a 2D canvas. Browsers cap maximum canvas dimensions; when a composition would exceed safe limits, scaling down keeps the export reliable. PNG preserves sharp edges for screenshots; file size may be larger than JPEG.
2. Compression: quality vs. size
Re-encoding to JPEG with canvas.toDataURL('image/jpeg', quality) reduces size at the cost of generational loss. Use higher quality for archival screenshots; lower quality for quick previews.
3. One tool for both flows
The Image Merge & Compress page combines multi-image collage export and single-file JPEG compression in one client-side workflow.