Images
Query the logos associated with a specific company.
This method returns the logo images associated with a specific company.
From TMDB: There are two image formats that are supported for companies, PNG's and SVG's. You can see which type the original file is by looking at the file_type field. We prefer SVG's as they are resolution independent and as such, the width and height are only there to reflect the original asset that was uploaded. An SVG can be scaled properly beyond those dimensions if you call them as a PNG.
async images(params: CompanyImagesParams): Promise<CompanyImages>TMDB Reference: Company Images
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
company_id | number | ✅ | TMDB company identifier. |
language | Language | ❌ | Language for localized results. Defaults to en-US. |
include_image_language | Language | ❌ | Additional language for localized results. |
If you have a language specified, it will act as a filter on the returned items. You can use the include_image_language param to query additional languages.
Returns
A CompanyImages object containing
the logos of the specified company.
Example
import { TMDB } from "@lorenzopant/tmdb";
const tmdb = new TMDB("your-api-key");
const company = await tmdb.companies.images({ company_id: 174, language: "en-US" });