Jellyfin Forum
Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Client Development (https://forum.jellyfin.org/f-client-development)
+---- Forum: Smart TV Development (https://forum.jellyfin.org/f-smart-tv-development)
+---- Thread: Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? (/t-question-how-to-obtain-a-usable-thumbnail-link-for-tizen-smart-hub-preview)



Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - BáBa - 2024-11-25

I'm working on implementing a Tizen Smart Hub Preview and have nearly completed a functional version.
The basic process involves the application running on the TV, generating a JSON file, and sending it to a Tizen service. 
For the preview to work, the application doesn’t need to be running, but I need a direct link to the thumbnail image to display it properly.

Currently, I see that the thumbnail is available at a URL like this:
http://<Server_Address>:8096/Items/<Item_ID>/Images/Thumb?fillHeight=122&fillWidth=216&format=jpg&quality=96&tag=<TAG>
However, the server response includes a
Content-Disposition: attachment
header, which prevents the thumbnail from being directly usable in the preview.
Is there a way to bypass this issue or modify the response so that the thumbnail URL can be embedded and displayed correctly in the Tizen preview?

Thanks


RE: Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - niels - 2024-11-25

All image endpoints return the content-disposition header to prevent the images from being opened directly in the browser. There is no way to disable this behavior.


RE: Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - BáBa - 2024-11-25

Then, do you have any advice on how this feature can be implemented?
It's quite frustrating that I need to rely on external sites for the thumbnails.


RE: Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - niels - 2024-11-25

I'm not familiar with development for Tizen but normally a content disposition header should not block an application from displaying an image.


RE: Question: How to Obtain a Usable Thumbnail Link for Tizen Smart Hub Preview? - BáBa - 2024-11-25

The problem, that in this case no development is needed from tizen point of view. We need to call an internal tizen api with a formated Json file. And one field is an url with the required image.
I can get all info from jellyfin except the image...