From 63ad96ac3af70b52e349c4afa38d0b0caeea3410 Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Thu, 7 Sep 2023 21:43:31 +0200 Subject: [PATCH] Add support for XPS --- README.md | 2 +- cbconvert.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f877756..403e00f 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ It can convert comics to different formats to fit your various devices. ### Features -* reads CBR (RAR), CBZ (ZIP), CB7 (7Z), CBT (TAR), PDF, EPUB, MOBI and plain directory +* reads CBR (RAR), CBZ (ZIP), CB7 (7Z), CBT (TAR), PDF, XPS, EPUB, MOBI and plain directory * saves processed comics in ZIP archive format or TAR * images can be converted to JPEG, PNG, TIFF, WEBP, AVIF, or 4-Bit BMP (16 colors) file format * rotate, adjust brightness/contrast, adjust levels (Photoshop-like) or grayscale images diff --git a/cbconvert.go b/cbconvert.go index 82b8daf..1baebc7 100644 --- a/cbconvert.go +++ b/cbconvert.go @@ -1397,7 +1397,7 @@ func (c *Convertor) isArchive(f string) bool { // isDocument checks if file is document. func (c *Convertor) isDocument(f string) bool { - var types = []string{".pdf", ".epub", ".mobi"} + var types = []string{".pdf", ".xps", ".epub", ".mobi"} for _, t := range types { if strings.ToLower(filepath.Ext(f)) == t { return true