epubimage

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package epubimage 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
	IsBlank             bool
	DoublePage          bool
	Path                string
	Name                string
	Position            string
	Format              string
	OriginalAspectRatio float64
	Error               error
}

func (*Image) EPUBImgPath added in v2.4.0

func (i *Image) EPUBImgPath() string

EPUBImgPath image path into the EPUB

func (*Image) EPUBPagePath added in v2.4.0

func (i *Image) EPUBPagePath() string

EPUBPagePath page path into the EPUB

func (*Image) EPUBSpacePath added in v2.4.0

func (i *Image) EPUBSpacePath() string

EPUBSpacePath path of the blank page into the EPUB

func (*Image) ImgKey added in v2.3.2

func (i *Image) ImgKey() string

ImgKey key for image

func (*Image) ImgPath

func (i *Image) ImgPath() string

ImgPath image path

func (*Image) ImgStyle

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

ImgStyle style to apply to the image.

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

func (*Image) PageKey added in v2.3.2

func (i *Image) PageKey() string

PageKey key for page

func (*Image) PagePath added in v2.3.2

func (i *Image) PagePath() string

PagePath page path linked to the image

func (*Image) RelSize added in v2.6.0

func (i *Image) RelSize(viewWidth, viewHeight int) (relWidth, relHeight int)

func (*Image) SpaceKey

func (i *Image) SpaceKey() string

SpaceKey key name of the blank page after the image

func (*Image) SpacePath

func (i *Image) SpacePath() string

SpacePath path of the blank page

Jump to

Keyboard shortcuts

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