Skip to content

Commit

Permalink
Merge pull request #110 from brenofabio/patch-1
Browse files Browse the repository at this point in the history
Fix VipsJpeg error
  • Loading branch information
roborourke authored Jul 16, 2020
2 parents 5a78a34 + e064103 commit 5e564f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const applyZoomCompression = function ( defaultValue, zoom ) {

module.exports.resizeBuffer = async function(buffer, args, callback) {
try {
const image = sharp(buffer).withMetadata();
const image = sharp(buffer, {failOnError: false}).withMetadata();

// check we can get valid metadata
const metadata = await image.metadata();
Expand Down

0 comments on commit 5e564f9

Please sign in to comment.