From f1c304dab7842091ad38aad644d0788f75a867ba Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Thu, 14 Nov 2024 11:56:17 +0100 Subject: [PATCH 1/2] Change representation extension to `png` because the thumbnail is actually a png This fixes thumbnail uploading for AYON server 1.5.5 --- client/ayon_maya/plugins/publish/extract_thumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_maya/plugins/publish/extract_thumbnail.py b/client/ayon_maya/plugins/publish/extract_thumbnail.py index 3897a403..9f6f18ec 100644 --- a/client/ayon_maya/plugins/publish/extract_thumbnail.py +++ b/client/ayon_maya/plugins/publish/extract_thumbnail.py @@ -74,7 +74,7 @@ def process(self, instance): representation = { "name": "thumbnail", - "ext": "jpg", + "ext": "png", "files": thumbnail, "stagingDir": dst_staging, "thumbnail": True From 046387dbb2a347d2dd40345de667600e94e1f2ce Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Mon, 9 Dec 2024 23:53:46 +0100 Subject: [PATCH 2/2] Update client/ayon_maya/plugins/publish/extract_thumbnail.py --- client/ayon_maya/plugins/publish/extract_thumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/ayon_maya/plugins/publish/extract_thumbnail.py b/client/ayon_maya/plugins/publish/extract_thumbnail.py index 9f6f18ec..a3ec58ef 100644 --- a/client/ayon_maya/plugins/publish/extract_thumbnail.py +++ b/client/ayon_maya/plugins/publish/extract_thumbnail.py @@ -74,7 +74,7 @@ def process(self, instance): representation = { "name": "thumbnail", - "ext": "png", + "ext": os.path.splitext(thumbnail)[-1].lstrip(".").lower(), "files": thumbnail, "stagingDir": dst_staging, "thumbnail": True