Documentation ¶
Overview ¶
package mangaconv provides utilities to convert manga and other comics for reading on an e-reader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedFormat = errors.New("unsupported format") ErrCannotReadPath = errors.New("cannot read path") )
Functions ¶
This section is empty.
Types ¶
type Converter ¶ added in v0.1.2
type Converter struct {
// contains filtered or unexported fields
}
Converter converts manga for reading on an e-reader. It's safe to use concurrently.
type Params ¶
Params adjust how each page of a manga is transformed. For sane defaults, see cmd/mangaconv.
Cutoff is the % of brightest and darkest pixels ignored when applying histogram normalization. Gamma is the multiplier by which an image is darkened or brightened. Values > 1 brighten and values < 1 darken it, with 1 leaving the image as is. Height and Width describe a bounding box in which the output image will be fit.
Click to show internal directories.
Click to hide internal directories.