diff --git a/Utils.ts b/Utils.ts index a848b6d..6c8e838 100644 --- a/Utils.ts +++ b/Utils.ts @@ -210,7 +210,8 @@ export class Utils { // const pathToBuffer: string = imagePath.substr(0, imagePath.lastIndexOf('/')) + '/buffer.txt'; // fs.writeFile(pathToBuffer, arrBuffer); // }); - thumb.cover(config.thumbnails.width, config.thumbnails.height); + //thumb.cover(config.thumbnails.width, config.thumbnails.height); + thumb.resize(config.thumbnails.width, Jimp.AUTO); pathToThumb += image.getExtension(); thumb.write(pathToThumb, () => { diff --git a/package.json b/package.json index 997d792..1773193 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "biiif", - "version": "0.3.12", + "version": "0.3.13", "description": "A CLI to build IIIF collections", "main": "index.js", "repository": {