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

Method String

imagetype/type.go:31–38  ·  view source on GitHub ↗

String returns the string representation of the image type.

()

Source from the content-addressed store, hash-verified

29
30// String returns the string representation of the image type.
31func (t Type) String() string {
32 desc := GetTypeDesc(t)
33 if desc != nil {
34 return desc.String
35 }
36
37 return ""
38}
39
40// Ext returns the file extension for the image type.
41func (t Type) Ext() string {

Callers 5

MarshalJSONMethod · 0.95
TestMatrixMethod · 0.45
testFormatMethod · 0.45

Calls 1

GetTypeDescFunction · 0.85

Tested by 4

TestMatrixMethod · 0.36
testFormatMethod · 0.36