Update supported file name extensions for art
Art read from external files supports more formats than previously listed here. Amend the list accordingly. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
b8057b7c29
commit
7f3bf052ca
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@
|
||||||
// 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"];
|
NSArray *types = @[@"jpg", @"jpeg", @"png", @"gif", @"webp", @"avif"];
|
||||||
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types];
|
NSArray *imageFileNames = [fileNames pathsMatchingExtensions:types];
|
||||||
|
|
||||||
for(NSString *fileName in imageFileNames) {
|
for(NSString *fileName in imageFileNames) {
|
||||||
|
|
Loading…
Reference in a new issue