Paidi28 Posted April 4, 2016 Report Share Posted April 4, 2016 Hey guys, in the old API Task had the Task.getThumbnail() function returning a url for the thumbnail. Is there anything equivalent or similar to this in the new API where I can get a url for the thumbnail ? Link to comment Share on other sites More sharing options...
Mike Posted June 7, 2016 Report Share Posted June 7, 2016 I'm having trouble finding a solution to this as well. Any updates? Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted June 8, 2016 Report Share Posted June 8, 2016 Thank you for raising this again, we haven't got it yet but I will make sure we have a ticket to add a documented method of getting it. Meanwhile you have to resort to some nasty hacking. Given a task with a thumbnail url that you want to use: # Get the server location where our thumbnail exists. server_location = s.query('Location where name is "ftrack.server"').one() # Get the download URL to the thumbnail image. download_url = server_location.get_url(task['thumbnail']) # Change url from download to getting the image as a thumbnail, # and scale the thumbnail to fit within in 100X100 pixels. thumbnail_url = download_url.replace('/get', '/thumbnail') + '&size=100' # The thumbnail_url can now be used to get the image. It contains your # api key credentials necessary to get the thumbnail. ... Link to comment Share on other sites More sharing options...
Mike Posted June 8, 2016 Report Share Posted June 8, 2016 It works, thanks! Link to comment Share on other sites More sharing options...
Yas Opisso Posted September 1, 2016 Report Share Posted September 1, 2016 Has a "not so hacky" way of doing this been implemented in the new api? Link to comment Share on other sites More sharing options...
Lucas Correia Posted September 2, 2016 Report Share Posted September 2, 2016 It hasn't been added yet, but it's still on the roadmap. Regards, Lucas Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.