optimizing fix, see #10
This commit is contained in:
parent
442d6d820e
commit
5eb0875b56
|
@ -885,7 +885,7 @@ class File extends DataItem {
|
||||||
}
|
}
|
||||||
if ( metadata.format == 'gif' )
|
if ( metadata.format == 'gif' )
|
||||||
return data
|
return data
|
||||||
return image.toBuffer()
|
return await image.toBuffer() // so to catch an error
|
||||||
} catch ( err ) {
|
} catch ( err ) {
|
||||||
log( 'Error otimizing image', err, this )
|
log( 'Error otimizing image', err, this )
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user