mirror of
https://github.com/Belphemur/CBZOptimizer.git
synced 2025-10-13 20:18:52 +02:00
18 lines
527 B
Go
18 lines
527 B
Go
package packer
|
|
|
|
import "image"
|
|
|
|
// PageContainer is a struct that holds a manga page, its image, and the image format.
|
|
type PageContainer struct {
|
|
// Page is a pointer to a manga page object.
|
|
Page *Page
|
|
// Image is the decoded image of the manga page.
|
|
Image image.Image
|
|
// Format is a string representing the format of the image (e.g., "png", "jpeg", "webp").
|
|
Format string
|
|
}
|
|
|
|
func NewContainer(Page *Page, img image.Image, format string) *PageContainer {
|
|
return &PageContainer{Page: Page, Image: img, Format: format}
|
|
}
|