Image optimizations

Abierto
#515 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
docker, html, java

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
Java
Estrellas
2.1k
Forks
362
Merge medio
1 d 3 h
PR fusionados (30 d)
44

Preparar el entorno

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 eclipse-openvsx/openvsx

Todos los issues de eclipse-openvsx/openvsx

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.