Tests: add real sample images (incl. HEIC) and cover HEIC in resize, convert and chains
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- testing-qa
Línea de trabajo
Start with tests/fixtures.py and the HEIC coverage in tests/test_info_cli.py and tests/test_info_helpers.py, then read the resize, convert, and chain tests. Add small real samples under tests/data/ and document their sources and upright dimensions in tests/data/README.md. Done means tests cover HEIC resize, conversion, the conversion-plus-resize chain, and rotated HEIC behavior, including GPS stripping where specified.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
The suite builds every test image on the fly with Pillow (tests/fixtures.py). That works well for isolated behavior, but two gaps showed up while preparing real photos with 1.7.0:
- HEIC is only tested through
info.sample_heic_imageandsample_jpeg_named_heicare used intests/test_info_cli.pyandtests/test_info_helpers.pyonly. Nothing coversresizeon a HEIC,convertfrom HEIC, or a chain likeconvert --format jpg + resize. That chain works in practice (verified by hand on 2026-11-17), but no test would catch a regression. - The synthetic HEIC has no orientation.
create_heic_filesaves a plain solid-color image. Real iPhone HEICs can carry rotation, and HEIF can express it in its own container transforms (irot/imir) as well as in EXIF. I have not verified how ipro and pillow-heif handle each case. The point is that no test exercises it. The orientation bug in #24 was invisible to programmatic checks until a real portrait photo hit it.
Proposal
Keep the generated fixtures, and add a small set of real sample files:
tests/data/with 4-5 tiny files (a few KB each), for example:- portrait HEIC from an iPhone
- landscape HEIC
- JPG with EXIF Orientation=6 (iPhone portrait)
- MPO from a recent iPhone (
.JPGextension, multiple frames)
- Shrink them (e.g. 200px) and strip GPS before committing. Use our own photos so licensing is clean.
- Document each file's source device and expected upright dimensions in
tests/data/README.md.
New tests:
resizeHEIC: output is upright at the expected dimensions.convertHEIC to JPG: upright, GPS stripped.- Chain
convert --format jpg + resize --width N: both stages produce correct output. - Rotated real HEIC through
resizeandconvert --strip-exif: stays upright.
Context
Follow-up to #24 and to a 24-photo batch on 2026-11-17 (4 HEIC, 8 rotated JPG). Related: #28, #29, #31.
— 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 50/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