mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
update readme
This commit is contained in:
parent
8ba526f186
commit
8cf02445e7
123
README.md
123
README.md
@ -1,10 +1,31 @@
|
|||||||
# go-comic-converter
|
# go-comic-converter
|
||||||
|
|
||||||
Convert CBZ/CBR/Dir into Epub for e-reader devices (Kindle Devices, ...)
|
Convert CBZ/CBR/Dir into EPUB for e-reader devices (Kindle Devices, ...)
|
||||||
|
|
||||||
My goal is to make a simple, crossplatform, and fast tool to convert comics into epub.
|
My goal is to make a simple, crossplatform, and fast tool to convert comics into EPUB.
|
||||||
|
|
||||||
Epub is now support by Amazon through [SendToKindle](https://www.amazon.com/gp/sendtokindle/), by Email or by using the App. So I've made it simple to support the size limit constraint of those services.
|
EPUB is now support by Amazon through [SendToKindle](https://www.amazon.com/gp/sendtokindle/), by Email or by using the App. So I've made it simple to support the size limit constraint of those services.
|
||||||
|
|
||||||
|
# Features
|
||||||
|
- Support input from zip, cbz, rar, cbr, pdf, directory
|
||||||
|
- Support all Kindle devices and kobo
|
||||||
|
- Support Landscape and Portrait mode
|
||||||
|
- Customize output image quality
|
||||||
|
- Intelligent cropping (support removing even page numbers)
|
||||||
|
- Customize brightness and contrast
|
||||||
|
- Auto rotate (if reader mainly read on portrait)
|
||||||
|
- Auto split double page (for easy read on portrait)
|
||||||
|
- Remove blank image (empty image is removed)
|
||||||
|
- Manga or Normal mode
|
||||||
|
- Support cover page or not (first page will be taken in that case)
|
||||||
|
- Split EPUB size for easy upload
|
||||||
|
- 3 sorting methods (depending on your source, you can ensure the page go in the right order)
|
||||||
|
- Save and reuse your own perfect settings
|
||||||
|
- Multi tasks for fast conversion
|
||||||
|
|
||||||
|
When you read the comic on a Kindle, you can customize how you read it with the `Aa` button:
|
||||||
|
- Landscape / Portrait
|
||||||
|
- Activate panel view for small device
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
@ -37,19 +58,19 @@ You can check if a new version is available with:
|
|||||||
$ go-comic-converter -version
|
$ go-comic-converter -version
|
||||||
go-comic-converter
|
go-comic-converter
|
||||||
Path : github.com/celogeek/go-comic-converter/v2
|
Path : github.com/celogeek/go-comic-converter/v2
|
||||||
Sum : h1:k1lhD90H0Cpno4VDFAR8OZYrnfV3SqUdVbYL+El9ZA4=
|
Sum : h1:9xYksu1PlJ6QkAL/5U2ZbufEb1tavpdRcpTPPcAjiNs=
|
||||||
Version : v2.0.6
|
Version : v2.3.3
|
||||||
Available Version: v2.0.6
|
Available Version: v2.3.3
|
||||||
|
|
||||||
To install the latest version:
|
To install the latest version:
|
||||||
$ go install github.com/celogeek/go-comic-converter/v2@v2.0.6
|
$ go install github.com/celogeek/go-comic-converter/v2@v2.3.3
|
||||||
```
|
```
|
||||||
|
|
||||||
# Supported image files
|
# Supported image files
|
||||||
|
|
||||||
The supported image files are jpeg and png from the sources.
|
The supported image files are jpeg and png from the sources.
|
||||||
|
|
||||||
The extensions can be: `jpg`, `jpeg`, `png`.
|
The extensions can be: `jpg`, `jpeg`, `png`, `webp`.
|
||||||
|
|
||||||
The case for extensions doesn't matter.
|
The case for extensions doesn't matter.
|
||||||
|
|
||||||
@ -97,7 +118,7 @@ The ePub include as a first page:
|
|||||||
- Title
|
- Title
|
||||||
- Part NUM / TOTAL
|
- Part NUM / TOTAL
|
||||||
|
|
||||||
If the total is above 1, then the title of the epub include:
|
If the total is above 1, then the title of the EPUB include:
|
||||||
- Title [part/total]
|
- Title [part/total]
|
||||||
|
|
||||||
## Dry run
|
## Dry run
|
||||||
@ -119,11 +140,12 @@ Options:
|
|||||||
View : 1653x2480
|
View : 1653x2480
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : true
|
AutoRotate : true
|
||||||
AutoSplitDoublePage : true
|
AutoSplitDoublePage : true
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : true
|
Manga : true
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : 200 Mb
|
LimitMb : 200 Mb
|
||||||
@ -158,11 +180,12 @@ Options:
|
|||||||
View : 1653x2480
|
View : 1653x2480
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : true
|
AutoRotate : true
|
||||||
AutoSplitDoublePage : true
|
AutoSplitDoublePage : true
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : true
|
Manga : true
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : 200 Mb
|
LimitMb : 200 Mb
|
||||||
@ -203,13 +226,16 @@ Go Comic Converter
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
Profile :
|
Profile :
|
||||||
|
ViewRatio : 1:1.5
|
||||||
|
View :
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : false
|
AutoRotate : false
|
||||||
AutoSplitDoublePage : false
|
AutoSplitDoublePage : false
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : false
|
Manga : false
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : nolimit
|
LimitMb : nolimit
|
||||||
@ -229,18 +255,19 @@ Options:
|
|||||||
View : 1653x2480
|
View : 1653x2480
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : true
|
AutoRotate : true
|
||||||
AutoSplitDoublePage : true
|
AutoSplitDoublePage : true
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : true
|
Manga : true
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : 200 Mb
|
LimitMb : 200 Mb
|
||||||
StripFirstDirectoryFromToc: false
|
StripFirstDirectoryFromToc: false
|
||||||
SortPathMode : path=alphanum, file=alpha
|
SortPathMode : path=alphanum, file=alpha
|
||||||
|
|
||||||
Saving to /Users/vincent/.go-comic-converter.yaml
|
Saving to ~/.go-comic-converter.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to change a setting, you can change only one of them
|
If you want to change a setting, you can change only one of them
|
||||||
@ -255,18 +282,19 @@ Options:
|
|||||||
View : 1653x2480
|
View : 1653x2480
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : true
|
AutoRotate : true
|
||||||
AutoSplitDoublePage : true
|
AutoSplitDoublePage : true
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : false
|
Manga : false
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : 200 Mb
|
LimitMb : 200 Mb
|
||||||
StripFirstDirectoryFromToc: false
|
StripFirstDirectoryFromToc: false
|
||||||
SortPathMode : path=alphanum, file=alpha
|
SortPathMode : path=alphanum, file=alpha
|
||||||
|
|
||||||
Saving to /Users/vincent/.go-comic-converter.yaml
|
Saving to ~/.go-comic-converter.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
### Reset default
|
### Reset default
|
||||||
@ -278,20 +306,63 @@ Go Comic Converter
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
Profile :
|
Profile :
|
||||||
|
ViewRatio : 1:1.5
|
||||||
|
View :
|
||||||
Quality : 85
|
Quality : 85
|
||||||
Crop : true
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
Brightness : 0
|
Brightness : 0
|
||||||
Contrast : 0
|
Contrast : 0
|
||||||
AutoRotate : false
|
AutoRotate : false
|
||||||
AutoSplitDoublePage : false
|
AutoSplitDoublePage : false
|
||||||
NoBlankPage : false
|
NoBlankImage : true
|
||||||
Manga : false
|
Manga : false
|
||||||
HasCover : true
|
HasCover : true
|
||||||
LimitMb : nolimit
|
LimitMb : nolimit
|
||||||
|
StripFirstDirectoryFromToc: false
|
||||||
|
SortPathMode : path=alphanum, file=alpha
|
||||||
|
|
||||||
Reset default to ~/.go-comic-converter.yaml
|
Reset default to ~/.go-comic-converter.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# My own settings
|
||||||
|
|
||||||
|
After playing around with the options, I have my perfect settings for a Kindle Scribe.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ go-comic-converter -reset
|
||||||
|
$ go-comic-converter -profile KS -quality 90 -autosplitdoublepage -manga -limitmb 200 -strip -save
|
||||||
|
|
||||||
|
Go Comic Converter
|
||||||
|
|
||||||
|
Options:
|
||||||
|
Profile : KS - Kindle Scribe - 1860x2480
|
||||||
|
ViewRatio : 1:1.5
|
||||||
|
View : 1653x2480
|
||||||
|
Quality : 90
|
||||||
|
Crop : true
|
||||||
|
CropRatio : 1 Left - 1 Up - 1 Right - 3 Bottom
|
||||||
|
Brightness : 0
|
||||||
|
Contrast : 0
|
||||||
|
AutoRotate : false
|
||||||
|
AutoSplitDoublePage : true
|
||||||
|
NoBlankImage : true
|
||||||
|
Manga : true
|
||||||
|
HasCover : true
|
||||||
|
LimitMb : 200 Mb
|
||||||
|
StripFirstDirectoryFromToc: true
|
||||||
|
SortPathMode : path=alphanum, file=alpha
|
||||||
|
|
||||||
|
Saving to ~/.go-comic-converter.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
Explanation:
|
||||||
|
- `-profile KS`: Kindle Scribe
|
||||||
|
- `-quality 90`: JPEG output quality of images
|
||||||
|
- `-autosplitdoublepage`: split double page into 2 images after displaying in full quality. Perfect render in landscape, great in portrait
|
||||||
|
- `-manga`: manga mode, read right to left
|
||||||
|
- `-limitmb 200`: size limit to 200MB allowing upload from SendToKindle website
|
||||||
|
- `-strip`: remove first level if alone on TOC, as offen comics include a main directory with the title
|
||||||
# Help
|
# Help
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -303,11 +374,11 @@ Output:
|
|||||||
-input string
|
-input string
|
||||||
Source of comic to convert: directory, cbz, zip, cbr, rar, pdf
|
Source of comic to convert: directory, cbz, zip, cbr, rar, pdf
|
||||||
-output string
|
-output string
|
||||||
Output of the epub (directory or epub): (default [INPUT].epub)
|
Output of the EPUB (directory or EPUB): (default [INPUT].epub)
|
||||||
-author string (default "GO Comic Converter")
|
-author string (default "GO Comic Converter")
|
||||||
Author of the epub
|
Author of the EPUB
|
||||||
-title string
|
-title string
|
||||||
Title of the epub
|
Title of the EPUB
|
||||||
|
|
||||||
Config:
|
Config:
|
||||||
-profile string
|
-profile string
|
||||||
@ -340,6 +411,14 @@ Config:
|
|||||||
Quality of the image
|
Quality of the image
|
||||||
-crop (default true)
|
-crop (default true)
|
||||||
Crop images
|
Crop images
|
||||||
|
-crop-ratio-left int (default 1)
|
||||||
|
Crop ratio left: ratio of pixels allow to be non blank while cutting on the left.
|
||||||
|
-crop-ratio-up int (default 1)
|
||||||
|
Crop ratio up: ratio of pixels allow to be non blank while cutting on the top.
|
||||||
|
-crop-ratio-right int (default 1)
|
||||||
|
Crop ratio right: ratio of pixels allow to be non blank while cutting on the right.
|
||||||
|
-crop-ratio-bottom int (default 3)
|
||||||
|
Crop ratio bottom: ratio of pixels allow to be non blank while cutting on the bottom.
|
||||||
-brightness int
|
-brightness int
|
||||||
Brightness readjustement: between -100 and 100, > 0 lighter, < 0 darker
|
Brightness readjustement: between -100 and 100, > 0 lighter, < 0 darker
|
||||||
-contrast int
|
-contrast int
|
||||||
@ -350,8 +429,8 @@ Config:
|
|||||||
Activate all automatic options
|
Activate all automatic options
|
||||||
-autosplitdoublepage
|
-autosplitdoublepage
|
||||||
Auto Split double page when width > height
|
Auto Split double page when width > height
|
||||||
-noblankpage
|
-noblankimage (default true)
|
||||||
Remove blank pages
|
Remove blank image
|
||||||
-manga
|
-manga
|
||||||
Manga mode (right to left)
|
Manga mode (right to left)
|
||||||
-hascover (default true)
|
-hascover (default true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user