From 0a243d1a10ad67b818dfc317aab1cb7029a6ede0 Mon Sep 17 00:00:00 2001 From: not-nullptr Date: Sat, 28 Jun 2025 16:36:54 +0100 Subject: [PATCH] fix: build, feat: ico support --- bun.lock | 1 + package.json | 1 + src/lib/converters/magick.svelte.ts | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bun.lock b/bun.lock index 1fc0fe8..cede655 100644 --- a/bun.lock +++ b/bun.lock @@ -30,6 +30,7 @@ "@sveltejs/vite-plugin-svelte": "^4.0.4", "@types/eslint": "^9.6.1", "autoprefixer": "^10.4.20", + "css-select": "5.1.0", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-svelte": "^2.46.1", diff --git a/package.json b/package.json index 19e1b77..de1534d 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "@sveltejs/vite-plugin-svelte": "^4.0.4", "@types/eslint": "^9.6.1", "autoprefixer": "^10.4.20", + "css-select": "5.1.0", "eslint": "^9.18.0", "eslint-config-prettier": "^10.0.1", "eslint-plugin-svelte": "^2.46.1", diff --git a/src/lib/converters/magick.svelte.ts b/src/lib/converters/magick.svelte.ts index bf49918..056c8a3 100644 --- a/src/lib/converters/magick.svelte.ts +++ b/src/lib/converters/magick.svelte.ts @@ -23,7 +23,9 @@ export class MagickConverter extends Converter { new FormatInfo("webp", true, true), new FormatInfo("gif", true, true), new FormatInfo("heic", true, false), - new FormatInfo("ico", true, false), + // TODO: .ico files can encode multiple images at various + // sizes, bitdepths, etc. we should support that in future + new FormatInfo("ico", true, true), new FormatInfo("bmp", true, false), new FormatInfo("cur", true, false), new FormatInfo("ani", true, false),