Imagine: give a filter's cached file the extension of its output format (WebP)
维护者通常 1 天内回复
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- PHP
- 星标
- 32
- 派生
- 8
- 平均合并
- 56 分钟
- 30 天内合并 PR
- 164
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/api-components-bundle 的其他 Issue
-
难度 5/5 一周以上 新手友好度 30/100
components-web-app/api-components-bundle#333 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
components-web-app/api-components-bundle#325 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 52/100
components-web-app/api-components-bundle#259 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
components-web-app/api-components-bundle#186 ·
维护者通常 1 天内回复
查看 components-web-app/api-components-bundle 的全部 Issue
相似的 Issue
-
Bug-Report
难度 2/5 1-3 小时 新手友好度 72/100
RSS-Bridge/rss-bridge#5158 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
octobercms/october#6150 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
-
type/bug
难度 2/5 1-3 小时 新手友好度 62/100
flarum/framework#5301 · 1 条评论 ·
维护者通常 1 天内回复
-
Add TuneIn-DirMon in the bot list可能已有人在做 @liviuconcioiu 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
matomo-org/device-detector#8424 ·
维护者通常 1 天内回复