GoogleChromeLabs/squoosh

When showing 'original', indicate the type

Ouverte

#101 ouverte le 16 juil. 2018

 (4 commentaires) (0 réaction) (0 personne assignée)TypeScript (2 136 forks)batch import
UIfeature requestgood first issue

Métriques du dépôt

Stars
 (25 720 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

In some cases, the type of the original isn't clear to the user, especially when it comes to pasting an image.

The type of the original should be indicated.

We should do this by the same mechanism we use to decide which decoder to use (https://github.com/GoogleChromeLabs/squoosh/pull/91#discussion_r201663191).

For formats with broad browser support, I wonder if the mimetype is already populated by sniffing. We should try throwing some extensionless images at the app and see what happens.

Guide contributeur