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

Method Ext

imagetype/type.go:41–48  ·  view source on GitHub ↗

Ext returns the file extension for the image type.

()

Source from the content-addressed store, hash-verified

39
40// Ext returns the file extension for the image type.
41func (t Type) Ext() string {
42 desc := GetTypeDesc(t)
43 if desc != nil {
44 return desc.Ext
45 }
46
47 return ""
48}
49
50// MarshalJSON implements the json.Marshaler interface for Type.
51func (t Type) MarshalJSON() ([]byte, error) {

Callers 10

ContentDispositionValueFunction · 0.80
TestDocumentParsingFunction · 0.80
BenchmarkDocumentParsingFunction · 0.80
detectContentTypeFunction · 0.80
TestDetectFunction · 0.80
respondWithImageMethod · 0.80
DownloadSyncMethod · 0.80
DownloadAsyncMethod · 0.80
TestSvgSuiteMethod · 0.80
BenchmarkSvgProcessingFunction · 0.80

Calls 1

GetTypeDescFunction · 0.85

Tested by 5

TestDocumentParsingFunction · 0.64
BenchmarkDocumentParsingFunction · 0.64
TestDetectFunction · 0.64
TestSvgSuiteMethod · 0.64
BenchmarkSvgProcessingFunction · 0.64