> ## Documentation Index
> Fetch the complete documentation index at: https://emiloju.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Basics

> How to build an 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 a `base_url`, a `file_size` and a `file_path`.

The first two pieces can be retrieved by calling the `/configuration` [API](https://emiloju.mintlify.app/api-reference/configuration/get-configuration-details) and the third is
the file path you're wishing to grab on a particular media object.

Here's what a full image URL looks like if the `poster_path` of `/1E5baAaEse26fej7uHcjOgEE2t2.jpg` was returned for a movie, and you were looking for the `w500` size:

```bash Example theme={null}
https://image.tmdb.org/t/p/w500/1E5baAaEse26fej7uHcjOgEE2t2.jpg
```

Company and network logos are available in two formats, SVG and PNG.
All of the `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.

Take for instance Netflix's logo (`wwemzKWzjKYJFfCeiB57q3r4Bcm.svg`), you can call any of the following:

```bash Example theme={null}
https://image.tmdb.org/t/p/original/wwemzKWzjKYJFfCeiB57q3r4Bcm.svg
https://image.tmdb.org/t/p/original/wwemzKWzjKYJFfCeiB57q3r4Bcm.png
https://image.tmdb.org/t/p/w500/wwemzKWzjKYJFfCeiB57q3r4Bcm.png
```
