Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

[Bug] Fractional height values are not rounded in resolveDimensions

Abierto
#313 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@anurag2787 ya está trabajando en esto.

Desde el 29/10/2026.

  • #316 de @anurag2787 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug hacktoberfest

Describe the bug
The resolveDimensions function rounds the width to an integer but doesn't round the height. Passing a fractional height can result in non-integer image dimensions being returned.

To Reproduce
Steps to reproduce the behavior:

  1. Run npm run dev
  2. Send the following request: curl -i "http://localhost:4321/api/og?template=blog-minimal-dark&height=315.6"
  3. The API returns 200 OK, but the height is not rounded internally

Expected behavior
Both width and height should be rounded to the nearest integer before validation and being returned.

Actual behavior
The function can return a fractional height, such as 315.6, instead of an integer pixel value

Lenguaje dominante
TypeScript
Estrellas
8
Forks
4
Merge medio
8 h 19 min
PR fusionados (30 d)
129

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de codercops/ogcops

Todos los issues de codercops/ogcops

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.