mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 10:38:51 +02:00
Add support for XPS
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user