mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
`run <file> --cmd … --out <same file>` silently replaced the original, so a lossy re-encode couldn't be undone; `batch` already refuses an --out that is its --in folder unless --in-place (#492). `run` now takes --in-place and, with a <file> and an --out, refuses before opening the file or running any command when the two are the same file by `file_cmds::same_file` (same name, ./ spelling, absolute path, hard or symbolic link). --new runs have no input and are unaffected. It uses the `refuse_overwriting_input` helper the `convert` fix adds. Co-Authored-By: Claude Opus 5.5 <[email protected]>