According to Sharp documentation the default resizing strategy is "cover" and it will crop if both maxWidth and maxHeight are defined. To respect the aspect ratio, the resize.js should should use the fit parameter 'inside':
Also, the default naming in compute-file-name.js has double dots in before the extension because path.extname already includes the dot and the join adds another.
According to Sharp documentation the default resizing strategy is "cover" and it will crop if both maxWidth and maxHeight are defined. To respect the aspect ratio, the resize.js should should use the fit parameter 'inside':
Also, the default naming in compute-file-name.js has double dots in before the extension because path.extname already includes the dot and the join adds another.