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

# Image URL

> How to build an image URL

## 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`

The first two pieces can be retrieved by calling the [configuration](https://ileolami.mintlify.app/api-reference/configuration/details) API and the third piece is the file path you get from a particular media object.

```mermaid theme={null}
flowchart LR
    subgraph ConfigurationAPI["<b> Configuration </b>"]
        direction RL
        base[" base_url"] --> size[" file_size"]
    end

    %% Defining the second subgraph with improved visibility
    subgraph MediaObject["<b> Media Object Data</b>"]
        
        path["file_path"]
    end

    %% External API request initiating the process
    request["Make API Request"] --> ConfigurationAPI
    request --> MediaObject

    %% Final step - building the image URL
    ConfigurationAPI --> build["Build Image URL"]
    MediaObject --> build
```

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:

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

## Company And Network Logo URL

Company and network logos are available in two formats:

* SVG
* 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.

For example,you can call Netflix's logo (`wwemzKWzjKYJFfCeiB57q3r4Bcm.svg`) through these following:

```shell 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
```
