mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-18 16:04:57 +00:00
- The free-memory check ran for every flat TIFF on Linux with a 512 MiB reserve, so small TIFFs that open on main were refused on a small VM or in a container: it now runs only for sizes the whole-image decode refused (over 2^30 px or its byte budget). - In a cgroup, memory.current counts page cache the kernel reclaims before memory.max is hit; its inactive_file part now counts as free. A `docker --memory=2g` batch whose cache filled up refused every TIFF. - A single-strip TIFF is one group, the whole image, and every converted piece of it was held at once: conversion now runs in rounds of at most 32 MiB of source rows per core. - TiffBands::open reported no ExtraSamplesDropped/OverLimit warnings on 32-bit targets (wasm); both decoders now share prepared_warnings, and Truncated goes before MorePages by position. - Drops the ar.tsv rows of "Fix CI after merging upstream": main added the same two keys (#10173), so the merged catalogue had duplicates and i18n::tests::bundled_catalogs_are_consistent failed. - Doc comments: the swap cap is every cgroup's above too (the ancestor walk FredApps asked for); a cut-off strip decodes as zeros. Co-authored-by: Khawar Zamman Wani <28915582+wanikhawar@users.noreply.github.com> Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>