epubimagefilters

package
v2.0.0-...-c09f89d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoContrast

func AutoContrast() *autocontrast

Automatically improve contrast

func AutoCrop

func AutoCrop(img image.Image, cutRatioLeft, cutRatioUp, cutRatioRight, cutRatioBottom int) gift.Filter

Lookup for margin and crop

func CoverTitle

func CoverTitle(title string, align string, pctWidth int, pctMargin int, maxFontSize int, borderSize int) gift.Filter

Create a title with the cover image

func CropSplitDoublePage

func CropSplitDoublePage(right bool) gift.Filter

Cut a double page in 2 part: left and right. This will cut in the middle of the page.

func Pixel

func Pixel() gift.Filter

Generate a blank pixel 1x1, if the size of the image is 0x0. An image 0x0 is not a valid image, and failed to read.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL