mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 12:10:55 +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 (iosMajorVersion() >= 10 && [dataUTI rangeOfString:@"heic"].location != NSNotFound)
|
||||||
{
|
{
|
||||||
|
#if !DEBUG
|
||||||
CIContext *context = [[CIContext alloc] init];
|
CIContext *context = [[CIContext alloc] init];
|
||||||
CIImage *image = [[CIImage alloc] initWithData:imageData];
|
CIImage *image = [[CIImage alloc] initWithData:imageData];
|
||||||
NSURL *tmpURL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSString alloc] initWithFormat:@"%x.jpg", (int)arc4random()]]];
|
NSURL *tmpURL = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:[[NSString alloc] initWithFormat:@"%x.jpg", (int)arc4random()]]];
|
||||||
@ -313,6 +314,7 @@
|
|||||||
if (range.location != NSNotFound)
|
if (range.location != NSNotFound)
|
||||||
fileName = [fileName stringByReplacingCharactersInRange:range withString:@".JPG"];
|
fileName = [fileName stringByReplacingCharactersInRange:range withString:@".JPG"];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
TGMediaAssetImageData *data = [[TGMediaAssetImageData alloc] init];
|
TGMediaAssetImageData *data = [[TGMediaAssetImageData alloc] init];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user