Skip to content

Commit

Permalink
Remove sharp workaround now that lovell/sharp#735 was merged
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Apr 27, 2017
1 parent 6c03ce3 commit b5e9cb1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/getFilterInfosAndTargetContentTypeFromQueryString.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,6 @@ module.exports = function getFilterInfosAndTargetContentTypeFromQueryString(quer
if (operation.name === 'extract' && args.length >= 4) {
args = [ { left: args[0], top: args[1], width: args[2], height: args[3] } ];
}
if (operation.name === 'crop' && args.length === 1 && (args[0] === 'attention' || args[0] === 'entropy')) {
args[0] = sharp.strategy[args[0]];
}
sharpInstance[operation.name].apply(sharpInstance, args);
});
return sharpInstance;
Expand Down

0 comments on commit b5e9cb1

Please sign in to comment.