Skip to content

fix(project): increase remote image download limit to 30MB for legacy assets migration - #80

Merged
lucas-matw-unq merged 1 commit into
mainfrom
feature/garage-admin-images
Oct 6, 2026
Merged

lucas-matw-unq merged 1 commit into
mainfrom
feature/garage-admin-images

Conversation

@lucas-matw-unq

@lucas-matw-unq lucas-matw-unq commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Resumen

Incrementa el límite máximo de descarga (maxBytes) de 10MB a 30MB y el timeout a 20s en fetchImageBuffer para permitir la migración e ingesta de imágenes de alta resolución legacy (por ejemplo, provenientes de repositorios externos como archive.org) antes de su optimización y compresión con Sharp.

Contexto

Durante la migración de insignias en proyectos preexistentes, varias imágenes originales sin optimizar superaban los 10MB (alcanzando hasta ~15MB), provocando que la descarga abortara antes de que Sharp pudiera redimensionarlas y comprimirlas al tamaño estándar de 512px.

Cambios

  • fetchImageBuffer:
    • maxBytes: 10MB $\rightarrow$ 30MB
    • timeoutMs: 8000ms $\rightarrow$ 20000ms

Verificación

  • Tests unitarios pasados (57/57 suites).
  • Migración de las 14 medallas completada exitosamente sin interrupciones por límite de tamaño.

@lucas-matw-unq
lucas-matw-unq force-pushed the feature/garage-admin-images branch from fda6a53 to 5ce5070 Compare October 6, 2026 02:25
@lucas-matw-unq lucas-matw-unq changed the title feat(storage): persist admin project and badge images to internal storage fix(project): increase remote image download limit to 30MB for legacy assets migration Oct 6, 2026
@lucas-matw-unq
lucas-matw-unq merged commit 1b9f31a into main Oct 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant