imageutil

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

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