add ability to select download format

This commit is contained in:
rubikscraft
2022-04-26 00:02:37 +02:00
parent 86cbbdd5b4
commit 342e52601e
7 changed files with 130 additions and 17 deletions

View File

@@ -35,20 +35,20 @@ export interface FullMime {
export const ImageMime2ExtMap: {
[key in ImageMime]: string;
} = {
[ImageMime.QOI]: 'qoi',
[ImageMime.JPEG]: 'jpg',
[ImageMime.PNG]: 'png',
[ImageMime.WEBP]: 'webp',
[ImageMime.TIFF]: 'tiff',
[ImageMime.BMP]: 'bmp',
// [ImageMime.ICO]: 'ico',
[ImageMime.QOI]: 'qoi',
};
export const AnimMime2ExtMap: {
[key in AnimMime]: string;
} = {
[AnimMime.APNG]: 'apng',
[AnimMime.GIF]: 'gif',
[AnimMime.APNG]: 'apng',
};
export const Mime2ExtMap: {