mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Fix typos
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
This commit is contained in:
parent
939c8354c0
commit
571e829b7a
@ -9,12 +9,12 @@ const { bytesToKbytes } = require('../utils/file');
|
||||
const getMetadatas = buffer =>
|
||||
sharp(buffer)
|
||||
.metadata()
|
||||
.catch(() => ({})); // ingore errors
|
||||
.catch(() => ({})); // ignore errors
|
||||
|
||||
const getDimensions = buffer =>
|
||||
getMetadatas(buffer)
|
||||
.then(({ width, height }) => ({ width, height }))
|
||||
.catch(() => ({})); // ingore errors
|
||||
.catch(() => ({})); // ignore errors
|
||||
|
||||
const THUMBNAIL_RESIZE_OPTIONS = {
|
||||
width: 245,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user