Skip to content

Commit 4be5ca0

Browse files
authored
Fix missing getattribute of limits:channels and limits:imagesize_MB (#3617)
I think it was just inadvertently left out when these were first added.
1 parent c51349a commit 4be5ca0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libOpenImageIO/imageio.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,14 @@ getattribute(string_view name, TypeDesc type, void* val)
431431
*(int*)val = tiff_half;
432432
return true;
433433
}
434+
if (name == "limits:channels" && type == TypeInt) {
435+
*(int*)val = limit_channels;
436+
return true;
437+
}
438+
if (name == "limits:imagesize_MB" && type == TypeInt) {
439+
*(int*)val = limit_imagesize_MB;
440+
return true;
441+
}
434442
if (name == "tiff:multithread" && type == TypeInt) {
435443
*(int*)val = tiff_multithread;
436444
return true;

0 commit comments

Comments
 (0)