Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxCoverWidth and MaxCoverHeight bound per-request work and cache churn. MaxCoverWidth = 600 MaxCoverHeight = 900 )
Variables ¶
Functions ¶
func Resize ¶
Resize takes an image from the provided io.Reader, resizes it to fit within the specified width and height while preserving the aspect ratio using Lanczos resampling, and returns the resulting image as a JPEG byte slice.
func ValidateDimensions ¶
ValidateDimensions returns an error when requested cover dimensions exceed the supported bounds for OPDS thumbnail/cover generation.
Types ¶
Click to show internal directories.
Click to hide internal directories.