epubimage

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 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) ImgKey added in v2.3.2

func (i *Image) ImgKey() string

key for image

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) PageKey added in v2.3.2

func (i *Image) PageKey() string

key for page

func (*Image) PagePath added in v2.3.2

func (i *Image) PagePath() string

page path linked to the image

func (*Image) SpaceKey

func (i *Image) SpaceKey() string

key name of the blank plage after the image

func (*Image) SpacePath

func (i *Image) SpacePath() string

path of the blank page

Jump to

Keyboard shortcuts

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