mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +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) {
|
||||
imageSize = CGSizeMake(image.size.width * fittedOriginalSize.width / rect.size.width, image.size.height * fittedOriginalSize.height / rect.size.height);
|
||||
} else {
|
||||
imageSize = image.size;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
image = inputImage;
|
||||
imageSize = image.size;
|
||||
}
|
||||
|
||||
if (skipImageTransform) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user