Image optimizations

オープン
#515 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, html, java

調査の方向性

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 の本文から書いたものです。

説明

enhancement priority:low webui

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)
image image

We could achieve optimization like this via two different approaches:

  • generating alternative images ahead of time
  • 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時間
マージ済み PR(30日)
44

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-openvsx/openvsx のほかの issue

eclipse-openvsx/openvsx の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。