Merge branch 'develop' into enhancement/YN-0290_provide_source_version_description

This commit is contained in:
Petr Kalis 2025-12-19 11:23:44 +01:00 committed by GitHub
commit 0dc34c32d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,9 +160,14 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
dst_path: str,
) -> bool:
self.log.debug("Outputting thumbnail with OIIO: {}".format(dst_path))
try:
resolution_args = self._get_resolution_args(
"oiiotool", src_path
)
except Exception:
self.log.warning("Failed to get resolution args for OIIO.")
return False
oiio_cmd = get_oiio_tool_args("oiiotool", "-a", src_path)
if resolution_args:
# resize must be before -o
@ -188,9 +193,13 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
src_path: str,
dst_path: str,
) -> bool:
try:
resolution_args = self._get_resolution_args(
"ffmpeg", src_path
)
except Exception:
self.log.warning("Failed to get resolution args for ffmpeg.")
return False
max_int = str(2147483647)
ffmpeg_cmd = get_ffmpeg_tool_args(