mirror of
https://github.com/gen2brain/cbconvert
synced 2025-10-14 02:28:51 +02:00
add options to rotate and flip images
This commit is contained in:
55
README.md
55
README.md
@@ -14,6 +14,7 @@ Features
|
||||
- images can be converted to JPEG, PNG, GIF or 4-Bit BMP (16 colors) file format
|
||||
- reads JPEG, PNG, BMP, GIF, TIFF and WEBP file formats
|
||||
- choose resize algorithm (NearestNeighbor, Box, Linear, MitchellNetravali, CatmullRom, Gaussian, Lanczos)
|
||||
- rotate, flip or grayscale images
|
||||
- export covers from comics
|
||||
- create thumbnails from covers by [freedesktop](http://www.freedesktop.org/wiki/) specification
|
||||
|
||||
@@ -33,12 +34,12 @@ Using
|
||||
Comic Book convert tool.
|
||||
|
||||
Flags:
|
||||
--help Show context-sensitive help (also try --help-long and --help-man).
|
||||
--version Show application version.
|
||||
-o, --outdir="." Output directory
|
||||
-m, --size=0 Process only files larger then size (in MB)
|
||||
-R, --recursive Process subdirectories recursively
|
||||
-Q, --quiet Hide console output
|
||||
--help Show context-sensitive help (also try --help-long and --help-man).
|
||||
--version Show application version.
|
||||
--outdir="." Output directory
|
||||
--size=0 Process only files larger then size (in MB)
|
||||
--recursive Process subdirectories recursively
|
||||
--quiet Hide console output
|
||||
|
||||
Args:
|
||||
<args> filename or directory
|
||||
@@ -49,33 +50,35 @@ Using
|
||||
|
||||
|
||||
convert [<flags>] <args>...
|
||||
Convert archive or document (default)
|
||||
Convert archive or document (default command)
|
||||
|
||||
-w, --width=0 Image width
|
||||
-h, --height=0 Image height
|
||||
-q, --quality=75 JPEG image quality
|
||||
-f, --filter=2 0=NearestNeighbor, 1=Box, 2=Linear, 3=MitchellNetravali, 4=CatmullRom, 6=Gaussian, 7=Lanczos
|
||||
-p, --png Encode images to PNG instead of JPEG
|
||||
-b, --bmp Encode images to 4-Bit BMP (16 colors) instead of JPEG
|
||||
-g, --gif Encode images to GIF instead of JPEG
|
||||
-N, --rgb Convert images that have RGB colorspace (use --no-rgb if you only want to process grayscale images)
|
||||
-I, --nonimage Leave non image files in archive (use --no-nonimage to remove non image files from archive)
|
||||
-G, --grayscale Convert images to grayscale (monochromatic)
|
||||
-s, --suffix=SUFFIX Add suffix to file basename
|
||||
--width=0 Image width
|
||||
--height=0 Image height
|
||||
--quality=75 JPEG image quality
|
||||
--filter=2 0=NearestNeighbor, 1=Box, 2=Linear, 3=MitchellNetravali, 4=CatmullRom, 6=Gaussian, 7=Lanczos
|
||||
--png Encode images to PNG instead of JPEG
|
||||
--bmp Encode images to 4-Bit BMP (16 colors) instead of JPEG
|
||||
--gif Encode images to GIF instead of JPEG
|
||||
--rgb Convert images that have RGB colorspace (use --no-rgb if you only want to process grayscale images)
|
||||
--nonimage Leave non image files in archive (use --no-nonimage to remove non image files from archive)
|
||||
--grayscale Convert images to grayscale (monochromatic)
|
||||
--rotate=0 Rotate images, valid values are 0, 90, 180, 270
|
||||
--flip="none" Flip images, valid values are none, horizontal, vertical
|
||||
--suffix=SUFFIX Add suffix to file basename
|
||||
|
||||
cover [<flags>] <args>...
|
||||
Extract cover
|
||||
|
||||
-w, --width=0 Image width
|
||||
-h, --height=0 Image height
|
||||
-q, --quality=75 JPEG image quality
|
||||
-f, --filter=2 0=NearestNeighbor, 1=Box, 2=Linear, 3=MitchellNetravali, 4=CatmullRom, 6=Gaussian, 7=Lanczos
|
||||
--width=0 Image width
|
||||
--height=0 Image height
|
||||
--quality=75 JPEG image quality
|
||||
--filter=2 0=NearestNeighbor, 1=Box, 2=Linear, 3=MitchellNetravali, 4=CatmullRom, 6=Gaussian, 7=Lanczos
|
||||
|
||||
thumbnail [<flags>] <args>...
|
||||
Extract cover thumbnail (freedesktop spec.)
|
||||
|
||||
-w, --width=0 Image width
|
||||
-h, --height=0 Image height
|
||||
--width=0 Image width
|
||||
--height=0 Image height
|
||||
|
||||
Examples
|
||||
--------
|
||||
@@ -84,9 +87,9 @@ Rescale images to 1200px for all supported files found in directory with size la
|
||||
|
||||
cbconvert --recursive --width 1200 --size 60 /media/comics/Thorgal/
|
||||
|
||||
Convert all images in archive to 4bit BMP image and save result in ~/comics directory:
|
||||
Convert all images in pdf to 4bit BMP image and save result in ~/comics directory:
|
||||
|
||||
cbconvert --bmp --outdir ~/comics /media/comics/Garfield/Garfield_01.cbz
|
||||
cbconvert --bmp --outdir ~/comics /media/comics/Garfield/Garfield_01.pdf
|
||||
|
||||
[BMP](http://en.wikipedia.org/wiki/BMP_file_format) format is very good choice for black&white pages. Archive size can be smaller 2-3x and file will be readable by comic readers.
|
||||
|
||||
|
Reference in New Issue
Block a user