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

Method Reader

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

Close closes the image data and releases any resources held by it

()

Source from the content-addressed store, hash-verified

20type ImageData interface {
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

Callers 15

LoadMethod · 0.65
LoadThumbnailMethod · 0.65
TestAsyncBufferReaderFunction · 0.65
TestAsyncBufferCloseFunction · 0.65
calcHashMethod · 0.65
respondWithImageMethod · 0.65
ReaderMethod · 0.65
DownloadAsyncMethod · 0.65
TestDownloadStatusOKMethod · 0.65
TestDownloadGzipMethod · 0.65

Implementers 2

imageDataBytesimagedata/image_data.go
imageDataAsyncBufferimagedata/image_data.go

Calls

no outgoing calls

Tested by 15

TestAsyncBufferReaderFunction · 0.52
TestAsyncBufferCloseFunction · 0.52
calcHashMethod · 0.52
TestDownloadStatusOKMethod · 0.52
TestDownloadGzipMethod · 0.52
TestFromFileMethod · 0.52
TestFromBase64Method · 0.52
readImageDataMethod · 0.52
TestSkipProcessingSVGMethod · 0.52
TestQualitySettingsMethod · 0.52