imageutil

package
v1.17.12 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 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