imageutil

package
v1.18.0-RC7 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Provides helper methods and data structures to work with images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateThumbnail

func CreateThumbnail(buf []byte, width, height int) ([]byte, error)

CreateThumbnail create thumbnail of an image buffer. It supports

  • png
  • jpeg
  • gif
  • bmp
  • ccitt
  • riff
  • tiff
  • vector
  • vp8
  • vp8l
  • webp

Types

type SubImager

type SubImager interface {
	SubImage(r image.Rectangle) image.Image
}

Jump to

Keyboard shortcuts

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