Documentation ¶
Index ¶
Constants ¶
View Source
const ( THUMBNAIL_TIMEOUT = 5 * time.Second THUMBNAIL_MAX_CONCURRENT = 50 )
View Source
const ( TRANSCODE_TIMEOUT = 10 * time.Second TRANSCODE_MAX_CONCURRENT = 5 )
View Source
const ImageCachePath = "data/cache/image/"
Variables ¶
View Source
var LIBRAW_LOCK = semaphore.NewWeighted(int64(TRANSCODE_MAX_CONCURRENT))
View Source
var VIPS_LOCK = semaphore.NewWeighted(THUMBNAIL_MAX_CONCURRENT)
Functions ¶
func CreateThumbnail ¶
func CreateThumbnail(t *Transform) (io.ReadCloser, error)
func ExtractPreview ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.