artwork

package
v0.0.0-...-da4093d Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package artwork scales podcast cover art to Apple Podcasts specifications. The encoder embeds the scaled bytes as an attached-picture stream for cover-capable formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScaleCoverArt

func ScaleCoverArt(inputPath string) ([]byte, error)

ScaleCoverArt scales cover art according to Apple Podcasts specifications:

  • Images < 1400x1400: upscale to 1400x1400
  • Images 1400x1400 to 3000x3000: use as-is (no scaling artefacts)
  • Images > 3000x3000: downscale to 3000x3000

It accepts PNG, JPEG, and GIF input. To avoid needless recompression an in-spec PNG returns its original bytes untouched; scaled images and non-PNG inputs re-encode to PNG.

Types

This section is empty.

Jump to

Keyboard shortcuts

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