Image optimizations

Đang mở
#515 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, html, java
Lĩnh vực
frontend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
2.1k
Fork
362
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
44

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-openvsx/openvsx

Tất cả issue của eclipse-openvsx/openvsx

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.