MCPcopy Create free account

hub / github.com/deiwin/imstor / functions

Functions51 in github.com/deiwin/imstor

↓ 4 callersMethodDecode
(io.Reader)
config.go:40
↓ 4 callersFunctionexpectToBeFile
(w io.Writer, name string)
mocks_test.go:61
↓ 3 callersMethodEncode
(io.Writer, image.Image)
config.go:41
↓ 3 callersMethodHasSizesForChecksum
(checksum string, sizes []string)
imstor.go:50
↓ 3 callersMethodPathForSize
(checksum, size string)
imstor.go:49
↓ 3 callersMethodStore
(mediaType string, data []byte)
imstor.go:44
↓ 3 callersFunctiongetStructuredFolderPath
(checksum string)
imstor.go:70
↓ 2 callersMethodChecksum
([]byte)
imstor.go:46
↓ 2 callersMethodChecksum
(data []byte)
imstor.go:83
↓ 2 callersMethodPathFor
(checksum string)
imstor.go:48
↓ 2 callersMethodPathForSize
(sum, size string)
imstor.go:92
↓ 2 callersMethodThumbnail
Thumbnail should downscale provided image to max width and height preserving original aspect ratio. It should return original image, without processin
resizer.go:18
↓ 2 callersFunctionhasNameWithoutExtension
(fileName, name string)
imstor.go:128
↓ 1 callersMethodChecksumDataURL
(string)
imstor.go:47
↓ 1 callersMethodDecodableMediaType
()
config.go:39
↓ 1 callersMethodEncodedExtension
()
config.go:42
↓ 1 callersMethodResize
Resize should scale an image to new width and height. If one of the parameters width or height is set to 0, its size will be calculated so that the as
resizer.go:14
↓ 1 callersMethodStore
(mediaType string, data []byte)
store.go:20
↓ 1 callersFunctioncreateCopies
(image image.Image, sizes []Size, resizer Resizer)
writing.go:18
↓ 1 callersFunctioncreateFolder
(path string)
writing.go:58
↓ 1 callersFunctiongetAbsFolderPath
(rootPath string, checksum string)
writing.go:53
↓ 1 callersMethodstoreInFormat
(r io.Reader, checksum string, f Format)
store.go:31
↓ 1 callersFunctionwriteImageAndCopies
(folder string, original image.Image, copies []imageFile, f Format)
writing.go:30
↓ 1 callersFunctionwriteImageFiles
(folder string, imageFiles []imageFile, f Format)
writing.go:38
MethodChecksumDataURL
(str string)
imstor.go:75
MethodDecodableMediaType
()
mocks_test.go:22
MethodDecodableMediaType
()
mocks_test.go:30
MethodDecodableMediaType
()
jpeg_format.go:23
MethodDecodableMediaType
()
png2jpeg.go:20
MethodDecode
(r io.Reader)
mocks_test.go:34
MethodDecode
(r io.Reader)
jpeg_format.go:19
MethodDecode
(r io.Reader)
png2jpeg.go:16
MethodEncode
(w io.Writer, i image.Image)
mocks_test.go:45
MethodEncode
(w io.Writer, i image.Image)
jpeg_format.go:27
MethodEncode
(w io.Writer, i image.Image)
png2jpeg.go:24
MethodEncodedExtension
()
mocks_test.go:41
MethodEncodedExtension
()
jpeg_format.go:31
MethodEncodedExtension
()
png2jpeg.go:28
MethodGetSize
(checksum, size string)
imstor.go:51
MethodGetSize
(sum, size string)
imstor.go:134
MethodHasSizesForChecksum
(sum string, sizes []string)
imstor.go:107
FunctionNew
New creates a storage engine using the default Resizer
imstor.go:55
FunctionNewConfig
(copySizes []Size, formats []Format)
config.go:20
FunctionNewWithCustomResizer
NewWithCustomResizer creates a storage engine using a custom resizer
imstor.go:63
MethodPathFor
(sum string)
imstor.go:88
MethodResize
(width, height uint, i image.Image)
resizer.go:25
MethodStoreDataURL
(str string)
store.go:12
MethodStoreDataURL
(string)
imstor.go:45
FunctionTestImstor
(t *testing.T)
imstor_suite_test.go:10
MethodThumbnail
(w, h uint, i image.Image)
mocks_test.go:73
MethodThumbnail
(maxWidth, maxHeight uint, i image.Image)
resizer.go:29