Documentation
¶
Index ¶
Constants ¶
View Source
const ( // MaxPosterHeight is the maximum height for poster images (optimized for Jellyfin/Plex/Emby) // Reduced from 1000px to 500px for better file sizes and performance MaxPosterHeight = 500 // LandscapeAspectRatioThreshold determines if an image is landscape-oriented // Images with width/height > this value are considered landscape (typical JAV covers are ~1.5) LandscapeAspectRatioThreshold = 1.2 )
Variables ¶
This section is empty.
Functions ¶
func CropPosterFromCover ¶
CropPosterFromCover intelligently crops a cover image to create a poster
Strategy: - Landscape images (aspect ratio > 1.2): Crop right 47.2% (original Javinizer behavior) - Square/Portrait images (aspect ratio <= 1.2): Center crop to 2:3 aspect ratio - If result exceeds MaxPosterHeight, resize maintaining aspect ratio
This ensures good results for both wide JAV covers and square promotional images
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.