mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-05-23 00:05:03 +08:00
fixed bug where some images got a white line on the right or bottom. (ex: 1500x1001 pixel image gets a white line on the bottom)
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@
|
|||||||
} else {
|
} else {
|
||||||
scaleFactor = widthFactor; // scale to fit width
|
scaleFactor = widthFactor; // scale to fit width
|
||||||
}
|
}
|
||||||
scaledSize = CGSizeMake(width * scaleFactor, height * scaleFactor);
|
scaledSize = CGSizeMake(floor(width * scaleFactor), floor(height * scaleFactor));
|
||||||
}
|
}
|
||||||
|
|
||||||
UIGraphicsBeginImageContext(scaledSize); // this will resize
|
UIGraphicsBeginImageContext(scaledSize); // this will resize
|
||||||
|
|||||||
Reference in New Issue
Block a user