How do we process image links to set the width and height of the image with the correct aspect ratio?
https://static-cdn.jtvnw.net/previews-ttv/live_user_lirik-{width}x{height}.jpg
How do we process image links to set the width and height of the image with the correct aspect ratio?
https://static-cdn.jtvnw.net/previews-ttv/live_user_lirik-{width}x{height}.jpg
You can set it to whatever you want.

uses 1:1 1/3
Yes, but how do I know what the aspect ratio is? Do I have to hardcode this? Different image links have different ratios too. For game images they are portrait but for stream images they are landscape.
This part of the new API doesn’t seem well thought out.
The aspect ratio is width:height 1:1.3
https://static-cdn.jtvnw.net/ttv-boxart/Star%20Wars%20Jedi%3A%20Fallen%20Order-83x113.jpg
113/83 = 1.36
To math for stream previews just do the same. Divide what twitch users
Ok, what is it for stream images?
https://static-cdn.jtvnw.net/previews-ttv/live_user_solaryfortnite-{width}x{height}.jpg
Is this information documented somewhere or is this left up to self-discovery?

Is
https://static-cdn.jtvnw.net/previews-ttv/live_user_cohhcarnage-440x248.jpg
440/248 = 1.77
Self Disco.
I misread your post and give game art information.
But 1920x1080 will work for stream thumbs. Since thats what people stream at
https://static-cdn.jtvnw.net/previews-ttv/live_user_cohhcarnage-1920x1080.jpg
ratio 1.7777777*