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