Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deiwin/imstor
/ functions
Functions
51 in github.com/deiwin/imstor
⨍
Functions
51
◇
Types & classes
13
↓ 4 callers
Method
Decode
(io.Reader)
config.go:40
↓ 4 callers
Function
expectToBeFile
(w io.Writer, name string)
mocks_test.go:61
↓ 3 callers
Method
Encode
(io.Writer, image.Image)
config.go:41
↓ 3 callers
Method
HasSizesForChecksum
(checksum string, sizes []string)
imstor.go:50
↓ 3 callers
Method
PathForSize
(checksum, size string)
imstor.go:49
↓ 3 callers
Method
Store
(mediaType string, data []byte)
imstor.go:44
↓ 3 callers
Function
getStructuredFolderPath
(checksum string)
imstor.go:70
↓ 2 callers
Method
Checksum
([]byte)
imstor.go:46
↓ 2 callers
Method
Checksum
(data []byte)
imstor.go:83
↓ 2 callers
Method
PathFor
(checksum string)
imstor.go:48
↓ 2 callers
Method
PathForSize
(sum, size string)
imstor.go:92
↓ 2 callers
Method
Thumbnail
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 callers
Function
hasNameWithoutExtension
(fileName, name string)
imstor.go:128
↓ 1 callers
Method
ChecksumDataURL
(string)
imstor.go:47
↓ 1 callers
Method
DecodableMediaType
()
config.go:39
↓ 1 callers
Method
EncodedExtension
()
config.go:42
↓ 1 callers
Method
Resize
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 callers
Method
Store
(mediaType string, data []byte)
store.go:20
↓ 1 callers
Function
createCopies
(image image.Image, sizes []Size, resizer Resizer)
writing.go:18
↓ 1 callers
Function
createFolder
(path string)
writing.go:58
↓ 1 callers
Function
getAbsFolderPath
(rootPath string, checksum string)
writing.go:53
↓ 1 callers
Method
storeInFormat
(r io.Reader, checksum string, f Format)
store.go:31
↓ 1 callers
Function
writeImageAndCopies
(folder string, original image.Image, copies []imageFile, f Format)
writing.go:30
↓ 1 callers
Function
writeImageFiles
(folder string, imageFiles []imageFile, f Format)
writing.go:38
Method
ChecksumDataURL
(str string)
imstor.go:75
Method
DecodableMediaType
()
mocks_test.go:22
Method
DecodableMediaType
()
mocks_test.go:30
Method
DecodableMediaType
()
jpeg_format.go:23
Method
DecodableMediaType
()
png2jpeg.go:20
Method
Decode
(r io.Reader)
mocks_test.go:34
Method
Decode
(r io.Reader)
jpeg_format.go:19
Method
Decode
(r io.Reader)
png2jpeg.go:16
Method
Encode
(w io.Writer, i image.Image)
mocks_test.go:45
Method
Encode
(w io.Writer, i image.Image)
jpeg_format.go:27
Method
Encode
(w io.Writer, i image.Image)
png2jpeg.go:24
Method
EncodedExtension
()
mocks_test.go:41
Method
EncodedExtension
()
jpeg_format.go:31
Method
EncodedExtension
()
png2jpeg.go:28
Method
GetSize
(checksum, size string)
imstor.go:51
Method
GetSize
(sum, size string)
imstor.go:134
Method
HasSizesForChecksum
(sum string, sizes []string)
imstor.go:107
Function
New
New creates a storage engine using the default Resizer
imstor.go:55
Function
NewConfig
(copySizes []Size, formats []Format)
config.go:20
Function
NewWithCustomResizer
NewWithCustomResizer creates a storage engine using a custom resizer
imstor.go:63
Method
PathFor
(sum string)
imstor.go:88
Method
Resize
(width, height uint, i image.Image)
resizer.go:25
Method
StoreDataURL
(str string)
store.go:12
Method
StoreDataURL
(string)
imstor.go:45
Function
TestImstor
(t *testing.T)
imstor_suite_test.go:10
Method
Thumbnail
(w, h uint, i image.Image)
mocks_test.go:73
Method
Thumbnail
(maxWidth, maxHeight uint, i image.Image)
resizer.go:29