Image URL
You’ll notice that movie, TV, and person objects contain references to different file paths. In order to generate a fully working image URL, you’ll need 3 pieces of data. Those pieces are:base_url
file_size
file_path
/1E5baAaEse26fej7uHcjOgEE2t2.jpg
was returned for a movie, and you were looking for the w500 size:
Example
Company And Network Logo URL
Company and network logos are available in two formats:- SVG
- PNG
logo_path
fields will return a .png
. This is to maintain backwards compatibility since SVG support was added after the fact.
When looking at the image methods there is a new field called file_type
that will show you the original version of the asset that was uploaded. For SVG’s, you should call the original image size since we don’t resize them.
If you prefer to grab PNG's
, you can call any size you wish just like normal.
For example,you can call Netflix’s logo (wwemzKWzjKYJFfCeiB57q3r4Bcm.svg
) through these following:
Example