May only have a avif encoder installed, not decoder, thus for resize output only means to save is required

This commit is contained in:
Lars Fronius 2020-10-13 01:04:04 +02:00
parent 1e535c36a1
commit 2cba482a06
No known key found for this signature in database
GPG key ID: 9799DF92255C2D0C

View file

@ -31,7 +31,7 @@ func resizer(buf []byte, o Options) ([]byte, error) {
o = applyDefaults(o, imageType)
// Ensure supported type
if !IsTypeSupported(o.Type) {
if !IsTypeSupportedSave(o.Type) {
return nil, errors.New("Unsupported image output type")
}