Skip to content

Commit

Permalink
feat: ✨ Added ability to convert HEIC and TIF files into WEBP/JPG/PNG.
Browse files Browse the repository at this point in the history
  • Loading branch information
xRyul committed Aug 23, 2023
1 parent 6c7d555 commit 38a4daa
Show file tree
Hide file tree
Showing 5 changed files with 1,376 additions and 4 deletions.
6 changes: 3 additions & 3 deletions manifest.json
@@ -1,10 +1,10 @@
{
"id": "image-converter",
"name": "Image Converter",
"version": "1.1.2",
"version": "1.1.3",
"minAppVersion": "0.15.0",
"description": "Convert and compress images from one format to another by dragging and dropping or pasting.",
"author": "xryul",
"description": "Convert, compress and resize images from one format to another by dragging and dropping or pasting into the note.",
"author": "xRyul",
"authorUrl": "https://github.com/xryul",
"isDesktopOnly": false
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -22,6 +22,7 @@
"typescript": "4.7.4"
},
"dependencies": {
"heic-convert": "^1.2.4"
"heic-convert": "^1.2.4",
"utif": "^3.1.0"
}
}
12 changes: 12 additions & 0 deletions src/heic-convert.d.ts
@@ -0,0 +1,12 @@
declare module 'heic-convert' {
interface ConvertOptions {
buffer: Buffer;
format: 'JPEG' | 'PNG';
quality: number;
}

function convert(options: ConvertOptions): Promise<Buffer>;

export = convert;
}

0 comments on commit 38a4daa

Please sign in to comment.