Documentation
¶
Index ¶
Constants ¶
View Source
const ( ImageJPEG = ImageFormat(inktypes.FormatJPEG) ImagePNG = ImageFormat(inktypes.FormatPNG) )
Variables ¶
This section is empty.
Functions ¶
func BuildPipeline ¶
func BuildPipeline(opts Options) (imageparser.ImagePipeline, error)
Types ¶
type FileWriterWrapper ¶
type FileWriterWrapper struct {
outdirwriter.WriterHandle
}
func NewFileWriterWrapper ¶
func NewFileWriterWrapper(extractDir string) (*FileWriterWrapper, error)
func (FileWriterWrapper) Close ¶
func (f FileWriterWrapper) Close() error
func (FileWriterWrapper) Process ¶
func (f FileWriterWrapper) Process(filename string, data []byte)
func (FileWriterWrapper) Shutdown ¶
func (f FileWriterWrapper) Shutdown() error
type ImageFormat ¶
type ImageFormat string
type Options ¶
type Options struct {
SourceFolder string
OutputFolder string
TargetDevice deviceprof.DeviceType
CropLevel CropStyle
OutputFormat OutputFormat
ReadDirection ReadDirection
RotateImage bool
StretchImage bool
AddMargins bool
ColoredPages bool
ImageFormat ImageFormat
ImageQuality uint8
}
func (Options) AllowStretch ¶
type OutputFormat ¶
type OutputFormat string
const ( FormatEpub OutputFormat = "epub" FormatMobi OutputFormat = "mobi" FormatFolder OutputFormat = "folder" )
type ReadDirection ¶
type ReadDirection string
Click to show internal directories.
Click to hide internal directories.