Skip to content

Repository files navigation

thumbnails

Generate and cache image thumbnails in Go.

PkgGoDevGo Report CardLines of codeMIT 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

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages