From 24abe0e0f309bc062fb4bbc19e69d832fa5d3ecc Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 22 Nov 2023 12:16:02 +0100 Subject: [PATCH] comments from https://github.com/ynput/OpenPype/pull/5936 --- openpype/plugins/publish/extract_thumbnail.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openpype/plugins/publish/extract_thumbnail.py b/openpype/plugins/publish/extract_thumbnail.py index 9f764c435c..f09dc92184 100644 --- a/openpype/plugins/publish/extract_thumbnail.py +++ b/openpype/plugins/publish/extract_thumbnail.py @@ -27,7 +27,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): hosts = ["shell", "fusion", "resolve", "traypublisher", "substancepainter"] enabled = False - publishing_thumbnail = False + integrate_thumbnail = False target_size = { "type": "resize", "width": 1920, @@ -155,7 +155,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): new_repre_tags = ["thumbnail"] # for workflows which needs to have thumbnails published as # separate representations `delete` tag should not be added - if not self.publishing_thumbnail: + if not self.integrate_thumbnail: new_repre_tags.append("delete") new_repre = { @@ -320,7 +320,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): def _get_resolution_arg(self, application): # get settings if self.target_size.get("type") == "source": - return + return [] width = self.target_size["width"] height = self.target_size["height"] @@ -329,3 +329,5 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): return ["-vf", "scale={0}:{1}".format(width, height)] elif application == "oiiotool": return ["-resize", "{0}x{1}".format(width, height)] + + return []