Articles in this topic
Downscale photos before upload — createImageBitmap with from-image orientation, an OffscreenCanvas worker, stepped halving, and convertToBlob to WebP.
Read article →Remove GPS and camera metadata in the browser with either a canvas re-encode that bakes orientation first or a JPEG segment walker that leaves pixels untouched.
Read article →Re-encode a phone clip to 1080p H.264 in the browser — isConfigSupported, a canvas scaler between the codecs, encodeQueueSize backpressure and an MP4 muxer.
Read article →Shrink photos before upload by converting to WebP in the browser — createImageBitmap, OffscreenCanvas in a worker, quality tuning and fallbacks.
Read article →Show a video thumbnail as soon as a file is chosen — seek a hidden video element, draw the frame to canvas, skip black frames, fall back on bad codecs.
Read article →