api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

[Request] Component method save_thumbnail versus get_thumbnail

Open Fredosixx opened this issue 1 year ago • 0 comments

The generation of component thumbnails can take very long, I have seen models where it takes over 20 seconds..... Why? I don't know, and this is probably another issue (more exactly why it takes much longer from the API than from the user interface).

Currently, the API offers a single method to get the thumbnail of a component: #save_thumbnail.

If, for whatever reason, the component needs to regenerate the thumbnail, it may take very long. However, the component has surely a current thumbnail, since it appears in the component browser.

The request would be to add a new method #get_thumbnail, that just fetches the thumbnail of the component as it is, whether up to date or not.

The main use case is when you display list of components, where you show the thumbnail of the component for convenience. It's better to have an image, even if not up-to-date than to wait for seconds or to have no image.

Fredosixx avatar Jan 27 '24 13:01 Fredosixx