thumbnail

package
v0.0.0-...-8142d1f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

return the thumbnailed version.

return the thumbnailed version.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FontsMagick

func FontsMagick(dst io.Writer) error

func MakeThumbnailMagick

func MakeThumbnailMagick(bytes []byte, dst http.ResponseWriter, params ThumbnailParameters) error

* サムネール処理

Types

type ThumbnailParameters

type ThumbnailParameters struct {
	Width       int  // Target width
	Height      int  // Target height
	Upscale     bool // Whether to upscale images that are smaller than the target
	ForceAspect bool // アスペクト比を変更可能か
	Quality     int  // JPEG quality (0-99)

	ImageUrl                string
	Text                    string
	TextColor               string
	Gravity                 int
	ImageOverlap            io.Reader
	ImageOverlapWidthRatio  float64
	ImageOverlapHeightRatio float64
	ImageOverlapGravity     int
	ImageOverlapXRatio      float64
	ImageOverlapYRatio      float64
	TextFontSize            float64
	TextGravity             int
	TextMargin              int
	CropMode                int
	Background              string
	TextFont                []string
	HttpAvoidChunk          bool
	FormatOutput            string
	CropAreaLimitation      float64
	MaxPixels               uint
}

ThumbnailParameters configures the thumbnailing process

Jump to

Keyboard shortcuts

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