String returns the string representation of the image type.
()
| 29 | |
| 30 | // String returns the string representation of the image type. |
| 31 | func (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. |
| 41 | func (t Type) Ext() string { |