Documentation ¶
Overview ¶
Package epubimage Image helpers to transform image.
Index ¶
- type Image
- func (i *Image) EPUBImgPath() string
- func (i *Image) EPUBPagePath() string
- func (i *Image) EPUBSpacePath() string
- func (i *Image) ImgKey() string
- func (i *Image) ImgPath() string
- func (i *Image) ImgStyle(viewWidth, viewHeight int, align string) string
- func (i *Image) PageKey() string
- func (i *Image) PagePath() string
- func (i *Image) RelSize(viewWidth, viewHeight int) (relWidth, relHeight int)
- func (i *Image) SpaceKey() string
- func (i *Image) SpacePath() string
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
EPUBImgPath image path into the EPUB
func (*Image) EPUBPagePath ¶ added in v2.4.0
EPUBPagePath page path into the EPUB
func (*Image) EPUBSpacePath ¶ added in v2.4.0
EPUBSpacePath path of the blank page into the EPUB
func (*Image) ImgStyle ¶
ImgStyle style to apply to the image.
center by default. align to left or right if it's part of the split double page.
Click to show internal directories.
Click to hide internal directories.