Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: build, feat: ico support

not-nullptr0a243d1a10ad
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),