mirror of
https://github.com/ciromattia/kcc
synced 2025-12-12 17:26:23 +00:00
Adding Dockerfile
This commit is contained in:
47
README.md
47
README.md
@@ -37,6 +37,32 @@ You can find the latest released binary at the following links:
|
||||
pip install --user KindleComicConverter
|
||||
```
|
||||
|
||||
beta version
|
||||
```
|
||||
pip install --index-url https://test.pypi.org/simple/ KindleComicConverterDarodi
|
||||
```
|
||||
|
||||
## DOCKER
|
||||
|
||||
|
||||
|
||||
install kindlegen in your working directory and get last docker image
|
||||
```
|
||||
wget -qO- https://archive.org/download/kindlegen_linux_2_6_i386_v2_9/kindlegen_linux_2.6_i386_v2_9.tar.gz | tar xvz kindlegen
|
||||
docker pull ghcr.io/darodi/kcc:latest
|
||||
```
|
||||
|
||||
execute kcc-c2e
|
||||
```
|
||||
docker run --rm -v "$(pwd):/app" ghcr.io/darodi/kcc:latest
|
||||
```
|
||||
|
||||
execute kcc-c2p
|
||||
```
|
||||
docker run --entrypoint /opt/kcc/kcc-c2p.py --rm -v "$(pwd):/app" ghcr.io/darodi/kcc:latest
|
||||
```
|
||||
|
||||
|
||||
## DEPENDENCIES
|
||||
Following software is required to run Linux version of **KCC** and/or bare sources:
|
||||
- Python 3.3+
|
||||
@@ -82,8 +108,8 @@ Options:
|
||||
MAIN:
|
||||
-p PROFILE, --profile=PROFILE
|
||||
Device profile (Available options: K1, K2, K34, K578,
|
||||
KDX, KPW, KPW5, KV, KO, KoMT, KoG, KoGHD, KoA, KoAHD, KoAH2O,
|
||||
KoAO, KoC, KoL, KoF) [Default=KV]
|
||||
KDX, KPW, KPW5, KV, KO, KoMT, KoG, KoGHD, KoA, KoAHD,
|
||||
KoAH2O, KoAO, KoC, KoL, KoF) [Default=KV]
|
||||
-m, --manga-style Manga style (right-to-left reading and splitting)
|
||||
-q, --hq Try to increase the quality of magnification
|
||||
-2, --two-panel Display two not four panels in Panel View mode
|
||||
@@ -103,6 +129,8 @@ Options:
|
||||
separate volume [Default=0]
|
||||
|
||||
PROCESSING:
|
||||
-n, --noprocessing Do not modify image and ignore any profil or
|
||||
processing option
|
||||
-u, --upscale Resize images smaller than device's resolution
|
||||
-s, --stretch Stretch images to device's resolution
|
||||
-r SPLITTER, --splitter=SPLITTER
|
||||
@@ -120,6 +148,8 @@ Options:
|
||||
--whiteborders Disable autodetection and force white borders
|
||||
--forcecolor Don't convert images to grayscale
|
||||
--forcepng Create PNG files instead JPEG
|
||||
--mozjpeg Create JPEG files using mozJpeg
|
||||
--maximizestrips Turn 1x4 strips to 2x2 strips
|
||||
|
||||
CUSTOM PROFILE:
|
||||
--customwidth=CUSTOMWIDTH
|
||||
@@ -174,12 +204,11 @@ The app relies and includes the following scripts:
|
||||
|
||||
_Originally posted by @hhtien1408 in https://github.com/ciromattia/kcc/issues/438#issuecomment-1281159452_
|
||||
|
||||
I wrote step-by-step instructions to install the lastest beta KCC-5.5.3-beta-darodi.6 based on @hiagpofranco idea
|
||||
|
||||
```
|
||||
$ git clone -branch beta_release https://github.com/darodi/kcc.git
|
||||
```
|
||||
|
||||
|
||||
Then I installed the necessary packages. You can do it by running the following command. The requirements.txt file is inside this repository, you will see it when you clone the repo.
|
||||
Then install the necessary packages. You can do it by running the following command. The requirements.txt file is inside this repository, you will see it when you clone the repo.
|
||||
|
||||
```
|
||||
$ pip3 install -r 'requirements.txt'
|
||||
@@ -195,7 +224,6 @@ If the packages are in the wrong version, you can try to upgrade them by running
|
||||
|
||||
```
|
||||
$ pip3 install --upgrade name_of_the_package
|
||||
|
||||
```
|
||||
Now, it should be all done. You can go to the folder of this repo and run
|
||||
|
||||
@@ -203,8 +231,10 @@ Now, it should be all done. You can go to the folder of this repo and run
|
||||
$ wget https://archive.org/download/kindlegen_linux_2_6_i386_v2_9/kindlegen_linux_2.6_i386_v2_9.tar.gz
|
||||
```
|
||||
```
|
||||
$ unzip kindlegen_linux_2.6_i386_v2_9.tar.gz
|
||||
$ tar xvzf kindlegen_linux_2.6_i386_v2_9.tar.gz kindlegen
|
||||
```
|
||||
Download and copy kindlegen into '/usr/local/bin' and grant execute permissions for MOBI conversion.
|
||||
|
||||
```
|
||||
$ sudo cp -R '/home/user/Desktop/kindlegen' '/usr/local/bin'
|
||||
```
|
||||
@@ -212,7 +242,6 @@ $ sudo cp -R '/home/user/Desktop/kindlegen' '/usr/local/bin'
|
||||
$ sudo chmod +rwx '/usr/local/bin/kindlegen'
|
||||
```
|
||||
|
||||
Download and copy kindlegen into '/usr/local/bin' and grant execute permissions for MOBI conversion.
|
||||
|
||||
Run python file for KCC GUI
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user