Image resizer and fix exif rotate
This module fix rotate and resize your image.
;
Or with more options...
; const options = maxWidth: <Number | undefined> maxHeight: <Number | undefined> quality: <Number 0100 | undefined> rotate: <Number 03 | undefined> type: <String> silent: <Boolean>
Where the options.silent
is active, no logs is return if you have an error or other.
Where the options.type
is the mime type of the resulting image. The mime type defaults to image/png
so you
may want to specify images/jpeg
.
Example
From a fetched image
;