mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: allow avif
, jfif
, webp
, bmp
, ico
image types (#6500
* feat: allow `avif`, `jfif`, `webp`, `bmp`, `ico` image types * dedupe for SSOT * more SSOT
This commit is contained in:
parent
2a4799d8c8
commit
fee760d38c
5 changed files with 28 additions and 36 deletions
|
@ -60,6 +60,7 @@ import {
|
|||
ENV,
|
||||
EVENT,
|
||||
GRID_SIZE,
|
||||
IMAGE_MIME_TYPES,
|
||||
IMAGE_RENDER_TIMEOUT,
|
||||
isAndroid,
|
||||
isBrave,
|
||||
|
@ -5743,7 +5744,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
|
||||
const imageFile = await fileOpen({
|
||||
description: "Image",
|
||||
extensions: ["jpg", "png", "svg", "gif"],
|
||||
extensions: Object.keys(
|
||||
IMAGE_MIME_TYPES,
|
||||
) as (keyof typeof IMAGE_MIME_TYPES)[],
|
||||
});
|
||||
|
||||
const imageElement = this.createImageElement({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue