Skip to content

Commit

Permalink
Update sharp to 0.15.0, and switch back to the official release.
Browse files Browse the repository at this point in the history
Change the expected output in a single test -- the change in resizing algorithm made a reference image differ by ~10%.
  • Loading branch information
papandreou committed May 24, 2016
1 parent f1b17e9 commit 273fe37
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/getFilterInfosAndTargetContentTypeFromQueryString.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function getMockFileNameForContentType(contentType) {
isOperationByEngineNameAndName.gm.extract = true;

try {
sharp = require('sharp-paras20xx');
sharp = require('sharp');
} catch (e) {}

try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"passerror": "1.1.1",
"pngcrush": "1.0.0",
"pngquant": "1.0.0",
"sharp-paras20xx": "0.14.0-patch2",
"sharp": "0.15.0",
"underscore": "1.8.3"
},
"optionalDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/processImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var express = require('express'),
Stream = require('stream'),
processImage = require('../lib/processImage'),
root = pathModule.resolve(__dirname, '..', 'testdata') + '/',
sharp = require('sharp-paras20xx');
sharp = require('sharp');

describe('express-processimage', function () {
var config;
Expand Down
Binary file modified testdata/turtleCroppedNorth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 273fe37

Please sign in to comment.