mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
27 lines
684 B
Go
27 lines
684 B
Go
package epuboptions
|
|
|
|
type Image struct {
|
|
Crop Crop
|
|
Quality int
|
|
Brightness int
|
|
Contrast int
|
|
AutoContrast bool
|
|
AutoRotate bool
|
|
AutoSplitDoublePage bool
|
|
KeepDoublePageIfSplit bool
|
|
KeepSplitDoublePageAspect bool
|
|
NoBlankImage bool
|
|
Manga bool
|
|
HasCover bool
|
|
View View
|
|
GrayScale bool
|
|
GrayScaleMode int
|
|
Resize bool
|
|
Format string
|
|
AppleBookCompatibility bool
|
|
}
|
|
|
|
func (i Image) MediaType() string {
|
|
return "image/" + i.Format
|
|
}
|