imageutil

package
v0.1.2-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MinPosterWidth is the minimum acceptable width for a poster image
	// If the poster is smaller than this, we'll fall back to cropping the cover
	MinPosterWidth = 800

	// MinPosterHeight is the minimum acceptable height for a poster image
	MinPosterHeight = 1000
)

Variables

This section is empty.

Functions

func GetOptimalPosterURL

func GetOptimalPosterURL(coverURL string, client *http.Client) (posterURL string, shouldCrop bool)

GetOptimalPosterURL attempts to find the highest quality poster URL It tries the awsimgsrc URL first, checks its resolution, and falls back to cover if needed Returns shouldCrop=false always since backend handles all cropping via downloadTempPoster

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL