mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 19:40:19 +00:00
HEIC debugging
This commit is contained in:
parent
7e898656d0
commit
4f0e246de2
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user