Documentation ¶
Index ¶
- Constants
- func CreateImageMosaic(inputImagePath string, outputImagePath string, outputImageWidth int, ...) error
- func CreateThumbnails(thumbnailImagesDir string) error
- func DrawGrid(sourceImage image.Image, tileWidth int, tileHeight int) image.Image
- func FindAverageColourInTile(sourceImage image.Image, targetRect image.Rectangle) color.NRGBA
- func FindColourInTile(sourceImage image.Image, targetRect image.Rectangle) color.RGBA
- func FindProminentColour(myImage image.Image) color.RGBA
- func LoadImage(imagePath string) (image.Image, string, error)
- func ResizeImage(originalImage image.Image, newWidth int, newHeight int) image.Image
- func SaveImage(imagePath string, imageToSave *image.Image) error
- type Analyzer
- type ThumbnailRequest
- type ThumbnailResponse
Constants ¶
View Source
const THUMBNAIL_WIDTH = 128
Variables ¶
This section is empty.
Functions ¶
func CreateImageMosaic ¶
func CreateThumbnails ¶
create a thumbnail for each image in db
func FindAverageColourInTile ¶
func FindColourInTile ¶
func ResizeImage ¶
Types ¶
type ThumbnailRequest ¶
type ThumbnailRequest struct { InputImage models.ImageDetail Width int ThumbnailsDir string }
thumbnailing
type ThumbnailResponse ¶
type ThumbnailResponse struct {
ThumbnailImage models.ImageDetail
}
Click to show internal directories.
Click to hide internal directories.