thomor 8ba9092d9c feat: Made the packages public
In order to let third parties use the package of this library, we moved
the pkg folder out of the locked internal folder
2024-09-24 22:37:00 +02:00

21 lines
423 B
Go

package epuboptions
import (
"github.com/celogeek/go-comic-converter/v2/pkg/utils"
)
type View struct {
Width, Height int
AspectRatio float64
PortraitOnly bool
Color Color
}
func (v View) Dimension() string {
return utils.IntToString(v.Width) + "x" + utils.IntToString(v.Height)
}
func (v View) Port() string {
return "width=" + utils.IntToString(v.Width) + ",height=" + utils.IntToString(v.Height)
}