This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
Enhancement: Clean up of Thumbnail workflow #6062
Labels
type: enhancement
Enhancements to existing functionality
type: refactor
Structural changes not affecting functionality
Is there an existing issue for this?
Please describe the feature you have in mind and explain what the current shortcomings are?
Current workflow for creating thumbnails (visible in Loader and Server UI) is a bit messy. (We sometimes call event review sent to Ftrack as 'Thumbnail' that doesn't help either).
Currently each DCC might generate
thumbnail
representation separately, there are 2 generic thumbnail extractors (extract_thumbnail.py
,extract_thumbnail_from_source.py
) which results in similar, but not same functionality (extract_thumbnail.py
had updates recently to support color spacing, rest is in various state.)Integration of Thumbnails is messy too. We most likely don't want to integrate 'thumbnail' representation as it is unnecessary polluting DB and Loader, but
integrate_thumbnail_ayon.py
depends on that representation to be published.Other sources of thumbnail paths could be used in that integrator:
- context.data.get("thumbnailPath")
(instance must have "published_representations" for lower mentioned options)
- instance.data.get("thumbnailSource")
- instance.data.get("thumbnailPath")
- representation with 'thumbnail' name from "published_representations"
(All these fields are undocumented and for new developer totally unknown.)
How would you imagine the implementation of the feature?
ExtractThumbnail
has it now via_get_resolution_arg
, so it means thatExtractThumbnailFromSource
might be superflucous, it is actually been used only in Webpublisher and TrayPublisher where it might be possible to eradicate itpreintegrate_thumbnail_representation.py
should be removed (this currently could be used as single point to control 'integrability' of thumbnails based on profiles - as creation of 'thumbnail' representation is disparate in each DCC.Are there any labels you wish to add?
Describe alternatives you've considered:
No response
Additional context:
No response
[cuID:OP-7603]
The text was updated successfully, but these errors were encountered: