mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 10:55:54 -07:00
May only have a avif encoder installed, not decoder, thus for resize output only means to save is required
This commit is contained in:
parent
1e535c36a1
commit
2cba482a06
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ func resizer(buf []byte, o Options) ([]byte, error) {
|
||||||
o = applyDefaults(o, imageType)
|
o = applyDefaults(o, imageType)
|
||||||
|
|
||||||
// Ensure supported type
|
// Ensure supported type
|
||||||
if !IsTypeSupported(o.Type) {
|
if !IsTypeSupportedSave(o.Type) {
|
||||||
return nil, errors.New("Unsupported image output type")
|
return nil, errors.New("Unsupported image output type")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue