Documentation
¶
Overview ¶
Package image provides utilities for processing image files, including retrieving image dimensions and creating thumbnails.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Exts = []string{"gif", "png", "jpg", "jpeg"} DefThumbSize = 150 ThumbPrefix = "thumb_" )
Functions ¶
func CreateThumb ¶
CreateThumb generates a thumbnail of the given image file with the specified maximum dimension. The thumbnail's width will be resized to `thumbPxSize` while maintaining the aspect ratio.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.