Image optimizations
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, html, java
- 领域
- frontend, performance
调研方向
Start by comparing the two approaches described in the issue: generating optimized images during extension publishing or serving them through an image-optimization service. Then trace the publishing flow and homepage extension-icon rendering to identify where the chosen approach belongs. Done means extension icons are resized or served in modern formats without unnecessarily downloading large originals; the issue does not specify an implementation or tests.
由索引模型根据 Issue 内容生成。
描述
Although the images that we use in our Web UI are all SVGs and all very tiny, the user-submitted extension icons tell a different story.
This story is a horror story recounting extensions like the Vim extension which have huge icons, in Vim's case 200Kb! Having high-quality icons is something I like and can be useful to display in certain places, but on our home page, where these icons get loaded automatically for everyone, downloading megabytes of them is not really something desirable.
Optimizing these icons via resizing and using modern web image formats can make a real difference (this is a test from the homapage of Open VSX with the 25 dev environment extensions:
| Current | Optimized (128x128 images) |
|---|---|
![]() |
![]() |
We could achieve optimization like this via two different approaches:
- generating alternative images ahead of time
- when users would submit extensions, we would use a tool like https://github.com/libvips/libvips to do the image processing a part of the publishing process. This way, we would need to create more images and it would take up more storage.
- besides the CLI, libvips has some unofficial implementations. They come in Java flavors, too - https://github.com/codecitizen/jlibvips, https://github.com/criteo/JVips (could not find a way to convert between formats with these though)
- optimizing "on the fly"
- we can use something like Weserv to our Docker image, which can do multiple image formats, resizing and other useful stuff like DPR.
- the obvious downside to this is that it's another service we would need to host and ship. It is pretty lightweight, but still it needs resources.
- this could help us optimize external images (e.g. README ones) as well
Either way we generate these images, we can make use of the awesome <picture> element, which lets the browser choose the best image format from the entries we specify.
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 362
- 平均合并
- 1 天 3 小时
- 30 天内合并 PR
- 44
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
eclipse-openvsx/openvsx 的其他 Issue
-
`ovsx verify` fails for a version older than the 100 newest of an extension可能已有人在做 @trivikr 今天认领。 未关闭cli
难度 2/5 1-3 小时 新手友好度 81/100
eclipse-openvsx/openvsx#2482 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
eclipse-openvsx/openvsx#2469 ·
维护者通常 1 天内回复
-
cli
难度 2/5 1-3 小时 新手友好度 66/100
eclipse-openvsx/openvsx#2423 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
eclipse-openvsx/openvsx#2476 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
eclipse-openvsx/openvsx#2439 · 2 条评论 ·
维护者通常 1 天内回复
查看 eclipse-openvsx/openvsx 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 83/100
Magic-team-jvav/confluence#281 ·
-
area/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
难度 1/5 1 小时以内 新手友好度 67/100
维护者通常 2 天内回复
-
[DEFECT] AsciiDoc builders write a stray ## before every schema member when the namespace prefixes file binds the schema's own namespace可能已有人在做 @Beehtrix 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
cimug-org/CIMTool#427 · 1 条评论 ·
维护者通常 1 天内回复
-
userRaised
难度 2/5 1-3 小时 新手友好度 76/100
eclipse-openj9/openj9#25285 ·
维护者通常 1 天内回复
-
Range type (eg Condition.onsetRange) fails IPS $summary + Observation.valueQuantity only render value in narrative可能已有人在做 @xmhorsehead 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
hapifhir/hapi-fhir#8952 · 2 条评论 ·
维护者通常 1 天内回复

