From 4f0e246de231f43f9d9b0a64880ca37f4e159f0c Mon Sep 17 00:00:00 2001 From: Peter Iakovlev Date: Sat, 1 Dec 2018 23:44:55 +0400 Subject: [PATCH] HEIC debugging --- LegacyComponents/TGMediaAssetModernImageSignals.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LegacyComponents/TGMediaAssetModernImageSignals.m b/LegacyComponents/TGMediaAssetModernImageSignals.m index d7d9fcd058..1f0d178672 100644 --- a/LegacyComponents/TGMediaAssetModernImageSignals.m +++ b/LegacyComponents/TGMediaAssetModernImageSignals.m @@ -298,6 +298,7 @@ if (iosMajorVersion() >= 10 && [dataUTI rangeOfString:@"heic"].location != NSNotFound) { +#if !DEBUG CIContext *context = [[CIContext alloc] init]; CIImage *image = [[CIImage alloc] initWithData:imageData]; NSURL *tmpURL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSString alloc] initWithFormat:@"%x.jpg", (int)arc4random()]]]; @@ -313,6 +314,7 @@ if (range.location != NSNotFound) fileName = [fileName stringByReplacingCharactersInRange:range withString:@".JPG"]; } +#endif } TGMediaAssetImageData *data = [[TGMediaAssetImageData alloc] init];