Output naming: --prefix/--suffix and safe default names beside the source
まだ誰も着手していません。
評価
調査の方向性
Read the implementations of resize and convert, along with the output naming behavior described in related issues #21 and #25. Decide how --prefix/--suffix, size suffixes beside the source, and --force should interact; the issue also raises a template flag as an alternative. Done means the chosen naming behavior is consistent and existing files are protected from overwrite unless --force is supplied.
索引モデルが issue の本文から書いたものです。
説明
Problem
resize (single size) and convert keep the input's basename, so the output folder is the only thing keeping a derivative apart from its source. That is the root cause of #25: point --output at the source folder and the original is overwritten.
It also means batch scripts must rename each output afterward when they want web-ready names.
Options
--prefix/--suffix: e.g.--suffix -webgivesphoto-web.jpg. Simple, predictable, and the user picks a name that makes sense in a URL.- Default size suffix when writing beside the source. Multi-size resize already names files
photo-300.jpg(#21). Using the same-{size}suffix whenever the output dir resolves to the input's dir would make #25 impossible by default. - Datestamp (e.g.
photo-20261117-1530.jpg): guarantees uniqueness, but the names are not deterministic, re-runs pile up copies, and the stamp ends up in public image URLs (Squarespace uses the filename as the URL).
Recommendation
Do 1 and 2. Treat a datestamp as an opt-in pattern, not the default. Pair it with a hard refusal to overwrite any existing file unless --force is given, which closes #25 even if naming is misconfigured.
A small --name template ({stem}, {w}, {h}, {date}) would cover all three options with one flag, if that is not over-engineering.
Context
Related: #25 (overwrite), #21 (output naming). Hit on 2026-11-17 with ipro 1.7.0 while renaming 24 exports by hand.
— Emily
- 主要言語
- Python
- スター
- 1
- フォーク
- 0
- 平均マージ
- 4時間 13分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cadentdev/ipro のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
LearningCircuit/local-deep-research#10161 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
chore: contact address [email protected]対応中かも @larsrollik が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Gustavo-Galvao-e-Silva/panchi#228 ·
メンテナーはふだん 1 日以内に返信