Closed pixelastic closed 3 years ago
I am already using sharp to create the blurry base64 version, so I might as well use it to get the image dimensions instead of pulling another dependency.
See modules/assets/lib/main.js
modules/assets/lib/main.js
✔ Done. Calling .metadata() does return the width and height.
.metadata()
Also fixed an issue with jpg files having the wrong mimetype
I am already using sharp to create the blurry base64 version, so I might as well use it to get the image dimensions instead of pulling another dependency.
See
modules/assets/lib/main.js