mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-10-14 21:40:47 +02:00
Both readers in the imread stack apply the TIFF orientation tag (cv2's libtiff path under IMREAD_UNCHANGED too, and Pillow's TIFF plugin, identically), so the visible path's blanket orientation_applied=False carried the tag onto an already-turned raster. _read_display_tags now ignores the explicit claim for TIFF and decides on the IFD's stored size, which also keeps a hypothetical non-turning build correct: a stored-shape raster still carries the tag. Guarded at the api seam, not just imwrite. pre-commit: 1) maintain.sh - exit 2 at the uv-secure gate, the three triaged no-fix advisories in docs/development.md (rechecked 2026-09-08); ruff check+format clean, pyright src/ 0 errors, 2363 passed 3 skipped run separately; 2) /simplify - single pass, no fan-out available, nothing to fix (api-state plumbing rejected as disproportionate); 3) docs sync - identifiers live only in docs/module-internals.md, updated, no other refs; 4) CLAUDE.md - audited against the structure rule, no additions, revise-claude-md: no additions