Documentation ¶
Index ¶
- Variables
- func ConvertUrlToPath(fnUrl string) (fn string)
- func GenThumbnail(fns []string, width, height, owidth, oheight int, to string) error
- func GetImageDimension(imagePath string) (width int, height int)
- func ResetLogFile(newFp io.WriteCloser)
- func SetupThumbnail(router *gin.Engine, cfg *data.ThumbnailType, xcfg *data.BaseConfigType, ...)
- func ThumbnailImage(c *gin.Context)
- func ThumbnailURL(c *gin.Context)
- type ApiThumbInput
Constants ¶
This section is empty.
Variables ¶
View Source
var DbOn map[string]bool
Functions ¶
func ConvertUrlToPath ¶
func GenThumbnail ¶
func GetImageDimension ¶
GetImageDimension returns width, height of an immage - .png, .jpg, .gif
- not working on .svg
- not returning errors
Example:
h, w = GetHWFromImage ( ffile_name );
func ResetLogFile ¶ added in v1.0.40
func ResetLogFile(newFp io.WriteCloser)
func ResetLogFile(newFp *os.File) {
func SetupThumbnail ¶
func SetupThumbnail(router *gin.Engine, cfg *data.ThumbnailType, xcfg *data.BaseConfigType, dbF map[string]bool, f io.WriteCloser, lfp *zap.Logger)
func SetupThumbnail(router *gin.Engine, cfg *data.ThumbnailType, xcfg *data.BaseConfigType, dbF map[string]bool, f *os.File, lfp *zap.Logger) {
func ThumbnailURL ¶
Types ¶
type ApiThumbInput ¶
Click to show internal directories.
Click to hide internal directories.