Handle external artwork with .heic extension
External artwork already supported the HEIC format, just not the correct filename extension for the format. Signed-off-by: Christopher Snowhill <kode54@gmail.com>main
parent
e4bc5853ad
commit
ab512e5086
|
@ -714,7 +714,7 @@ static NSString *xmlEscapeString(NSString * string) {
|
||||||
// Gather list of candidate image files
|
// Gather list of candidate image files
|
||||||
|
|
||||||
NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
|
NSArray *fileNames = [[NSFileManager defaultManager] contentsOfDirectoryAtPath:path error:nil];
|
||||||
NSArray *types = @[@"jpg", @"jpeg", @"png", @"gif", @"webp", @"avif"];
|
NSArray *types = @[@"jpg", @"jpeg", @"png", @"gif", @"webp", @"avif", @"heic"];
|
||||||
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types];
|
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types];
|
||||||
|
|
||||||
for(NSString *fileName in imageFileNames) {
|
for(NSString *fileName in imageFileNames) {
|
||||||
|
|
Loading…
Reference in New Issue