Skip to content

srlehn/thumbnails

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages