ynput / ayon-python-api

Apache License 2.0
9 stars 3 forks source link

Thumbnails: Remove thumbnail cache logic #83

Closed iLLiCiTiT closed 1 year ago

iLLiCiTiT commented 1 year ago

Description

Removed thumbnail cache logic from ayon-python-api. In that case thumbnail getters do not store image file on disk, and does not return filepath, but thumbnail content in wrapped object. This is backwards compatibility breaking change. Added get_thumbnail_by_id method.

Additional information

The caching in python api could cause troubles as is not maintained in any other way. The logic was using location that should be defined by AYON launcher (desktop application) or different logic. It was not possible to bypass the cache.