GoogleChromeLabs/squoosh

When showing 'original', indicate the type

開放

#101 建立於 2018年7月16日

 (4 則留言) (0 個反應) (0 位負責人)TypeScript (2,137 個分叉)batch import
UIfeature requestgood first issue

倉庫指標

星標
 (25,731 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南