mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
Update openpype/plugins/publish/extract_jpeg_exr.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
3a7e329e85
commit
28d0ea37a7
1 changed files with 9 additions and 1 deletions
|
|
@ -132,7 +132,15 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
]
|
||||
subprocess_exr = " ".join(oiio_cmd)
|
||||
self.log.info(f"running: {subprocess_exr}")
|
||||
run_subprocess(oiio_cmd, logger=self.log)
|
||||
try:
|
||||
run_subprocess(oiio_cmd, logger=self.log)
|
||||
return True
|
||||
except Exception:
|
||||
self.log.warning(
|
||||
"Failed to create thubmnail using oiiotool",
|
||||
exc_info=True
|
||||
)
|
||||
return False
|
||||
|
||||
def create_thumbnail_ffmpeg(self, src_path, dst_path):
|
||||
self.log.info("outputting {}".format(dst_path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue