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 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
Click to show internal directories.
Click to hide internal directories.