epubimage

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Image helpers to transform image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Id         int
	Part       int
	Raw        image.Image
	Width      int
	Height     int
	IsCover    bool
	DoublePage bool
	Path       string
	Name       string
}

func (*Image) ImgPath

func (i *Image) ImgPath() string

image path

func (*Image) ImgStyle

func (i *Image) ImgStyle(viewWidth, viewHeight int, manga bool) string

style to apply to the image.

center by default. align to left or right if it's part of the splitted double page.

func (*Image) Key

func (i *Image) Key(prefix string) string

key name of the image

func (*Image) SpaceKey

func (i *Image) SpaceKey(prefix string) string

key name of the blank plage after the image

func (*Image) SpacePath

func (i *Image) SpacePath() string

path of the blank page

func (*Image) TextPath

func (i *Image) TextPath() string

text path linked to the image

Jump to

Keyboard shortcuts

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