PreviewURL is nil on old macOS for some reason
This commit is contained in:
@@ -76,10 +76,13 @@
|
||||
break;
|
||||
}
|
||||
|
||||
// Convert to JPEG.
|
||||
responseData = MBIMCGImageJPEGRepresentation(previewImage);
|
||||
|
||||
// Persist JPEG preview to disk
|
||||
[responseData writeToURL:previewURL atomically:YES];
|
||||
if (previewURL) {
|
||||
[responseData writeToURL:previewURL atomically:YES];
|
||||
}
|
||||
} else {
|
||||
// File exists
|
||||
MBIMLogInfo(@"Using cached preview image for guid: %@ at %@", guid, [previewURL path]);
|
||||
|
||||
Reference in New Issue
Block a user