Soporte de The Movie Database

I have a rather odd question concerning Configuration and the Profile Image sizes that are listed "w45", "w185", "h632" and "original".

In itself, the codes listed are not a problem, and image URLs that I generate using those code work without any problems. The following links show as an example the profile images for Morgan Freeman: W45, W185, H632 and ORIGINAL.

Except that when I generate a URL for retrieve a profile image, I'm able to use size codes that are not listed in the "profile_sizes" section of the configuration retrieval results. To illustrate, the following links also display profile images of Morgan Freeman, except that the URLs make use of size codes from other image size sections: logo_sizes (W92), poster_sizes (W342) and backdrop_sizes (W1280)

Is it just a lucky bug in my use of the API that size codes from other sections work with profile images, or simply that the "w92", "w342" and "w1280" are not supposed to be used for Profile Images, and are therefore not listed in the "profile_sizes" section of the configuration results?

Oh, and for the record, I have no interest in using the "w342" and "w1280" size codes. I only used them here in this post to illustrate how image size code that are not part of "profile_sizes" would still work. I do, however (knowing that it works) want to use "w92" to download images of people when displaying cast search results. "w45" is too small for my needs, with "w185", "h632" and "original" being too big for display in a list.

2 respuestas (en la página 1 de 1)

Jump to last post

Technically speaking all of the sizes you can find everywhere can be used for any image. The reason to have some standardized image sizes is that these are the sizes I am willing to guarantee. The contract between you and I, so to speak. The image service is just a "dumb" web app, pass it a different param and anything will work. But I don't guarantee other sizes. They might come and go and if you decide to rely on size that isn't official, you're doing so at your own risk.

There's another benefit to choosing official sizes and it's because these sizes are well cached on the CDN. If no other app is using another size, you'll end up creating the assets yourself. This is not only a slow process from the origin but also, these assets won't be warmed and cached at the edges so your customers will also have a slow experience.

Hopefully that explains it all wink

@travisbell said:

Technically speaking all of the sizes you can find everywhere can be used for any image. The reason to have some standardized image sizes is that these are the sizes I am willing to guarantee. The contract between you and I, so to speak. The image service is just a "dumb" web app, pass it a different param and anything will work. But I don't guarantee other sizes. They might come and go and if you decide to rely on size that isn't official, you're doing so at your own risk.

There's another benefit to choosing official sizes and it's because these sizes are well cached on the CDN. If no other app is using another size, you'll end up creating the assets yourself. This is not only a slow process from the origin but also, these assets won't be warmed and cached at the edges so your customers will also have a slow experience.

Hopefully that explains it all wink

This does clear things up somewhat, because I was concerned precisely about whether or not the "unofficial size" would always be available.

I wanted to use the "w92" instead of "w45" when displaying search results for people, because they are easier on the eyes. I think what I will do is to change my application to use "w45" images when displaying people results, and only when the user double-clicks on a person to display their Movie/TV credits, will I download a larger image. I might even use "w185" as a static poster display.

Thanks for the help, Travis.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de discusión

n crear nueva discusión
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder a la discusión
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión