thumbnails

package module
v0.0.0-...-7341f63 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 27 Imported by: 1

README

thumbnails

Generate and cache image thumbnails in Go.

PkgGoDev Go Report Card Lines of code MIT license

import "github.com/srlehn/thumbnails"

// Exactly one of size.X / size.Y must be 0 (the other sets the side; aspect ratio is kept).
img, err := thumbnails.OpenThumbnail("photo.jpg", image.Point{X: 256}, true)

Set runThumbnailer to also use installed system thumbnailer helpers where available.

Platforms

Linux is fully supported; thumbnails are cached following the freedesktop spec. Other platforms are a work in progress.

License

See LICENSE.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenThumbnail

func OpenThumbnail(filename string, size image.Point, runThumbnailer bool) (image.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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