Batch photo processing in the browser: memory spikes from the final ZIP step

A developer tested browser memory use while re-encoding a 300-photo batch to JPEG, measuring total usage across all browser processes. Decoding every photo up front made memory grow with folder size, while releasing each bitmap after use kept it near one photo's footprint. Keeping all re-encoded results for a final ZIP pushed memory up sharply at the end, adding about 830 MiB against a 428 MiB archive. Writing each file to disk instead showed memory climbing in the browser outside the JavaScript heap, a cause the author had not yet identified. The author also noted an unexplained startup memory baseline that appears across runs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in