optimizing fix, see #10

This commit is contained in:
v 2019-01-30 18:03:52 +03:00
parent 442d6d820e
commit 5eb0875b56

View File

@ -885,7 +885,7 @@ class File extends DataItem {
}
if ( metadata.format == 'gif' )
return data
return image.toBuffer()
return await image.toBuffer() // so to catch an error
} catch ( err ) {
log( 'Error otimizing image', err, this )
return data