Implements Jimp exitRotate() new method (jimp 0.2.28) to sove incoherent rotations when scaling images.

v1.18.x
manolino 8 years ago committed by Julian Lam
parent bc6edba6df
commit 9cb098bb0b

@ -37,6 +37,10 @@ image.resizeImage = function (data, callback) {
var y = 0;
var crop;
if (image._exif && image._exif.tags && image._exif.tags.Orientation) {
image.exifRotate();
}
if (origRatio !== desiredRatio) {
if (desiredRatio > origRatio) {
desiredRatio = 1 / desiredRatio;

Loading…
Cancel
Save