MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Format

Method Format

imagedata/image_data.go:23–23  ·  view source on GitHub ↗

Reader returns a new ReadSeeker for the image data

()

Source from the content-addressed store, hash-verified

21 io.Closer // Close closes the image data and releases any resources held by it
22 Reader() io.ReadSeeker // Reader returns a new ReadSeeker for the image data
23 Format() imagetype.Type // Format returns the image format from the metadata (shortcut)
24 Size() (int, error) // Size returns the size of the image data in bytes
25 Error() error // Error returns any error that occurred during reading data from source
26

Callers 15

LoadMethod · 0.65
LoadThumbnailMethod · 0.65
appendTimeMethod · 0.65
formatMethod · 0.65
appendTimeMethod · 0.65
GetObjectMethod · 0.65
SetupTestMethod · 0.65
GetObjectMethod · 0.65
handlerMethod · 0.65

Implementers 2

imageDataBytesimagedata/image_data.go
imageDataAsyncBufferimagedata/image_data.go

Calls

no outgoing calls

Tested by 15

SetupTestMethod · 0.52
handlerMethod · 0.52
TestHeaderCasesMethod · 0.52
TestDownloadStatusOKMethod · 0.52
TestDownloadGzipMethod · 0.52
TestFromFileMethod · 0.52
TestFromBase64Method · 0.52