Add support for XPS

This commit is contained in:
Milan Nikolic
2023-09-07 21:43:31 +02:00
parent 9bd7193124
commit 63ad96ac3a
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ It can convert comics to different formats to fit your various devices.
### Features ### 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 * 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 * 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 * rotate, adjust brightness/contrast, adjust levels (Photoshop-like) or grayscale images

View File

@@ -1397,7 +1397,7 @@ func (c *Convertor) isArchive(f string) bool {
// isDocument checks if file is document. // isDocument checks if file is document.
func (c *Convertor) isDocument(f string) bool { func (c *Convertor) isDocument(f string) bool {
var types = []string{".pdf", ".epub", ".mobi"} var types = []string{".pdf", ".xps", ".epub", ".mobi"}
for _, t := range types { for _, t := range types {
if strings.ToLower(filepath.Ext(f)) == t { if strings.ToLower(filepath.Ext(f)) == t {
return true return true