mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00
Fix photo image crop
This commit is contained in:
parent
155b8765a8
commit
619fe59027
@ -267,11 +267,14 @@ UIImage *TGPhotoEditorVideoExtCrop(UIImage *inputImage, UIImage *paintingImage,
|
|||||||
|
|
||||||
if (skipImageTransform) {
|
if (skipImageTransform) {
|
||||||
imageSize = CGSizeMake(image.size.width * fittedOriginalSize.width / rect.size.width, image.size.height * fittedOriginalSize.height / rect.size.height);
|
imageSize = CGSizeMake(image.size.width * fittedOriginalSize.width / rect.size.width, image.size.height * fittedOriginalSize.height / rect.size.height);
|
||||||
|
} else {
|
||||||
|
imageSize = image.size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
image = inputImage;
|
image = inputImage;
|
||||||
|
imageSize = image.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skipImageTransform) {
|
if (skipImageTransform) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user