Output naming: --prefix/--suffix and safe default names beside the source
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 50/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 0
- Merge medio
- 4 h 13 min
- PR fusionados (30 d)
- 2
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cadentdev/ipro
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 45/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
Todos los issues de cadentdev/ipro
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
LearningCircuit/local-deep-research#10161 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
chore: contact address [email protected]Posiblemente ocupada @larsrollik la tomó hoy. Abierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Gustavo-Galvao-e-Silva/panchi#228 ·
Los mantenedores suelen responder en 1 día