Supporto The Movie Database

Can we get even smaller than 92px width images for posters so we it can be used as a very lightweight placeholder for lazy image loading?

I'd say 30px is good. In my case I'm blurring the image before the higher resolution is downloaded in background so quality of the low res image is not important but 30px is 1/3 of a weight of the current lowest possible res.

3 risposte (nella pagina 1 di 1)

Jump to last post

Hi @rafau94,

Technically you can use the w45 size. Here's a comparison of the two sizes:

w45

$ curl -I -L "https://image.tmdb.org/t/p/w45/db32LaOibwEliAmSL2jjDF6oDdj.jpg"
HTTP/2 200 
date: Sun, 29 Dec 2019 16:52:24 GMT
content-type: image/jpeg
content-length: 1914
set-cookie: __cfduid=da8852b24a8d01ad6651d780fe2012d871577638344; expires=Tue, 28-Jan-20 16:52:24 GMT; path=/; domain=.tmdb.org; HttpOnly; SameSite=Lax
last-modified: Tue, 22 Oct 2019 10:37:10 GMT
cache-control: max-age=31449600
etag: "fc3c904799fa824a37d3eb67e2c65be2"
expires: Tue, 20 Oct 2020 10:37:10 GMT
x-rack-cache: miss, store
x-content-digest: 27c10d57f6c121994ac7b9b6a0711f718fdcb23e
access-control-allow-origin: *
cf-cache-status: HIT
age: 46439
accept-ranges: bytes
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
alt-svc: h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
server: cloudflare
cf-ray: 54cd48c77ed9f4ae-YVR

w92

$ curl -I -L "https://image.tmdb.org/t/p/w92/db32LaOibwEliAmSL2jjDF6oDdj.jpg"
HTTP/2 200 
date: Sun, 29 Dec 2019 16:53:01 GMT
content-type: image/jpeg
content-length: 5350
set-cookie: __cfduid=db238450fc16ae071903345a02fa6eede1577638381; expires=Tue, 28-Jan-20 16:53:01 GMT; path=/; domain=.tmdb.org; HttpOnly; SameSite=Lax
last-modified: Tue, 22 Oct 2019 04:39:01 GMT
cache-control: max-age=31449600
etag: "fc3c904799fa824a37d3eb67e2c65be2"
expires: Tue, 20 Oct 2020 04:39:01 GMT
x-rack-cache: miss, store
x-content-digest: 787a35b5be5496a63634471d3bf428d845240e50
access-control-allow-origin: *
cf-cache-status: HIT
age: 2039982
accept-ranges: bytes
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
alt-svc: h3-24=":443"; ma=86400, h3-23=":443"; ma=86400
server: cloudflare
cf-ray: 54cd49aa4845f4a2-YVR

I suspect you'll be happy with the difference, 1914 vs 5350 bytes.

w45 is good for me too grinning Thanks!

edit: Add it maybe to the configuration API endpoint, poster_sizes does not contain it

Technically w45 is a profile image size but there's nothing I can do to stop anyone from using other sizes found in other image types.

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi