Externally linking to thumbnail URL

Is there a way to extract the direct url link to an embedded image?
The link displayed in the thumbnail cell looks something like this:


and yet when you click on it, the actual url location is something like this:


I am trying import these images as live-links into another package, and am not able to pull in the images because of the disparity between the url displayed in the cell, and the exact url address where the image is stored.
Is there any way I can have the cell contain the exact link url instead?
Perhaps there is another cell where this is stored?


1 Like

Hi @VFX.Soup,

The thumbnail link is s3 link to the thumbnail. When you say link to an embedded image, what is the purpose? Do you want to embed it in another website or another application?




Hi, Loney
That is exactly it, yes.
In this case - I am trying to pull the thumbnail images into cells on a GoogleSheet.

1 Like

I’m looking for the same thing. I need the actual url to the original uploaded thumbnail. Is this possible.

1 Like

Found your solution… Here you go! This method returns both the thumbnail generated by shotgun as well as the original thumbnail.

def getFullRawThumbnail():
    entityType = 'CustomNonProjectEntity08'
    entityID = 423
    filters = [['id', 'is', entityID]]
    fields = ['code', 'image', 'sg_type']
    lowFile = sg.find_one('CustomNonProjectEntity08', filters, fields)

    # result = sg.download_attachment({'url':'https://***.shotgunstudio.com/thumbnail/full/{}/{}'.format(entityType, entityID)})
    rawFile = sg.get_attachment_download_url({'url':'https://***.shotgunstudio.com/thumbnail/full/{}/{}'.format(entityType, entityID)})
    print rawFile

Ok - thanks. Was hoping this might be something I could easily pipe into a GoogleSheet without having to resort to Python. Thanks for your help!



Apologies for the Noob question, but how would I use the python script you shared to return the AWS URL for a thumbnail? Is there a way to use this script when doing an Excel/CSV export, so it returns both thumbnail URLs in the resulting .csv?