Skip to content

Commit

Permalink
Fix: bucks object is already disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
sueda_masaki committed Jan 8, 2015
1 parent e5e1a22 commit 218ebec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/image/imagemagick.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ functions.ratioResize = function (options, baseRatio, outRatios, callback) {
function (err, res, next) {
// do not get the default quality if quality option is set
if (!!options.quality) {
next(null);
return next(null);
}
self.getDefaultQuality(srcPath, next);
}
Expand Down
4 changes: 3 additions & 1 deletion test/test-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ describe('beezlib.image', function () {
width: rw,
height: rh,
strip: true,
sharpening: 0.3
sharpening: 0.3,
quality: 0.5
});
done();

Expand Down Expand Up @@ -67,6 +68,7 @@ describe('beezlib.image', function () {
var baseRatio = 2.0;
var outRatios = [3.0, 2.0, 1.3, 1.0];
var options = {
quality: 0.5,
srcPath: 'test/image/logo.png',
dstPath: 'test/image',
//width: null,
Expand Down

0 comments on commit 218ebec

Please sign in to comment.