Skip to main content

Module transform

Module transform 

Source

Modulesยง

negotiate
Content negotiation for image format selection. Ported from src/transform/negotiate.zig. See docs/INVARIANTS.md INV-7 โ€” the priority order is fixed and must always resolve to a concrete format.
params
Transform parameter parsing. Ported from src/transform/params.zig. See docs/INVARIANTS.md INV-1 (cache key canonical format) and INV-6 (bounds/NaN/Inf rejection โ€” the sole gate before values reach vips FFI).
pipeline
Transform pipeline: probe -> budget check -> decide -> reload -> extract frame -> trim -> rotate/flip -> resize -> effects -> background -> encode. Ported from src/transform/pipeline.zig. The animated+cover resize workaround (INV-2) and GIF pre-encode safety check (INV-3) are the highest-risk pieces of this entire rewrite โ€” see docs/INVARIANTS.md.