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

Imagine: give a filter's cached file the extension of its output format (WebP)

Cerrado
#402 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Ya se ha fusionado un pull request relacionado.

  • #404 de @silverbackdan — fusionado
  • #409 de @silverbackdan — fusionado

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php, symfony
Área
backend

Línea de trabajo

The payload names no files. Start with how the bundle builds the liip Imagine cache path for a filter set and how it sets the stored object's content type, including the local adapter's content-type detection. Reproduce by configuring a filter set with format: webp and checking the cached file's extension and the served Content-Type. Done means the cached variant carries the output format's extension or an explicit WebP content type, with a test covering it. The issue leaves open whether to change the extension or set the content type, so confirm the approach with maintainers first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

From components-web-app#143. With format: webp on a liip filter set, the bundle's media objects correctly report image/webp, and the stored bytes are WebP, about half the size of the JPEG at q82. But liip keeps the source's name, so the variant is stored as cache/general/photo.jpg. Anything that serves by extension (the local adapter, and possibly GCS depending on how it detects the type) then sends Content-Type: image/jpeg. liip's webp.generate doesn't help either: the bundle never asks for the WebP URL, and every filter would be generated twice.

Proposed: when a filter set has a format, store and resolve its cached file with that extension (or set the stored object's content type explicitly). Optionally, expose both variants in mediaObjects. The template would then switch its filters to WebP.

Lenguaje dominante
PHP
Estrellas
32
Forks
8
Merge medio
56 min
PR fusionados (30 d)
164

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

  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 components-web-app/api-components-bundle

Todos los issues de components-web-app/api-components-bundle

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.