Customer provided .exr returned width and height equal to 0 which caused error in extract_thumbnail. This tries to use oiiotool to get metadata about file, in our case it read it correctly.
Additional info
This PR is a bit weird as it solves very specific use case, which could be reoccurring though as source .exr comes from Deadline render from Maya and it is not supposed to be special. This update provide just one more layer of safety.
Testing notes:
test on customer site OR
use attached test file from Clickup issue and run this in Tray > Console:
from openpype.lib.transcoding import get_rescaled_command_arguments
Changelog Description
Customer provided .exr returned width and height equal to 0 which caused error in
extract_thumbnail
. This tries to use oiiotool to get metadata about file, in our case it read it correctly.Additional info
This PR is a bit weird as it solves very specific use case, which could be reoccurring though as source
.exr
comes from Deadline render from Maya and it is not supposed to be special. This update provide just one more layer of safety.Testing notes:
Tray > Console
:input_path = "FILE_PATH" args = get_rescaled_command_arguments("oiiotool", input_path, 1900, 1200) print(args )