Skip to content

Commit

Permalink
Remove unnecessary call to flatten.
Browse files Browse the repository at this point in the history
This allows the user to preserve transparency. The call was originally in place to deal with an older SVG bug.
  • Loading branch information
aesopwolf committed Aug 31, 2016
1 parent 25ffa4b commit 90b2c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sharp.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const transform = (image, options = {}) => {
return image[key].apply(image, value);
}
return image;
}, image.clone().flatten());
}, image.clone());
};

/**
Expand Down

0 comments on commit 90b2c85

Please sign in to comment.