Improve error message for imagecropauto if palette index is not found
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- c
- Área
- computer-graphics
Línea de trabajo
The issue asks that imagecropauto's threshold-mode error, raised when the palette index given as the color argument is absent, say the index was not found instead of the current 'must be greater than or equal to 0' wording. Search the repository for that message text and for the imagecropauto implementation to find where it is raised, then reproduce with a threshold crop and an absent index. Done when the new message names the missing palette index and the existing tests still pass. The payload does not show which file holds the message, and the thread has had no reply in about five years, so confirm the maintainers still want the change first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
When IMG_CROP_THRESHOLD is used and the palette index specified in imagecropauto (parameter $color) is not present in the image, the error message is:
Fatal error: Uncaught ValueError: imagecropauto(): Argument #4 ($color) must be greater than or equal to 0 when using the threshold mode in /srv/krauler/controller.php:68
This error message is confusing. It should rather say that the palette index was not found.
- Lenguaje dominante
- C
- Estrellas
- 985
- Forks
- 289
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 libgd/libgd
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
New version? fix vulns?Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
libgd: Uninitialized Stack Read in gdImageScaleBicubicFixed Leading to Out-of-bounds Pixel AccessAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
Todos los issues de libgd/libgd
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
libsndfile/libsndfile#1239 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
CommonLoon102/restunts-bb11#101 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100