From 254509db5ed3a8457c34013d89f08eae89bb638f Mon Sep 17 00:00:00 2001 From: C4illin Date: Thu, 22 May 2025 12:34:34 +0200 Subject: [PATCH] chore: restore calibre --- README.md | 2 +- src/converters/main.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4edb84f..2878e37 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ A self-hosted online file converter. Supports over a thousand different formats. | [Vips](https://github.com/libvips/libvips) | Images | 45 | 23 | | [libheif](https://github.com/strukturag/libheif) | HEIF | 2 | 4 | | [XeLaTeX](https://tug.org/xetex/) | LaTeX | 1 | 1 | +| [Calibre](https://calibre-ebook.com/) | E-books | 26 | 19 | | [Pandoc](https://pandoc.org/) | Documents | 43 | 65 | | [GraphicsMagick](http://www.graphicsmagick.org/) | Images | 167 | 130 | | [Inkscape](https://inkscape.org/) | Vector images | 7 | 17 | @@ -38,7 +39,6 @@ A self-hosted online file converter. Supports over a thousand different formats. | [FFmpeg](https://ffmpeg.org/) | Video | ~472 | ~199 | | [Potrace](https://potrace.sourceforge.net/) | Raster to vector | 4 | 11 | - diff --git a/src/converters/main.ts b/src/converters/main.ts index 3c745f6..47cbcea 100644 --- a/src/converters/main.ts +++ b/src/converters/main.ts @@ -8,7 +8,7 @@ import { convert as convertPandoc, properties as propertiesPandoc } from "./pand import { convert as convertresvg, properties as propertiesresvg } from "./resvg"; import { convert as convertImage, properties as propertiesImage } from "./vips"; import { convert as convertxelatex, properties as propertiesxelatex } from "./xelatex"; -// import { convert as convertCalibre, properties as propertiesCalibre } from "./calibre"; +import { convert as convertCalibre, properties as propertiesCalibre } from "./calibre"; import { convert as convertLibheif, properties as propertiesLibheif } from "./libheif"; import { convert as convertpotrace, properties as propertiespotrace } from "./potrace"; @@ -63,10 +63,10 @@ const properties: Record< properties: propertiesxelatex, converter: convertxelatex, }, - // calibre: { - // properties: propertiesCalibre, - // converter: convertCalibre, - // }, + calibre: { + properties: propertiesCalibre, + converter: convertCalibre, + }, pandoc: { properties: propertiesPandoc, converter: convertPandoc,