Adding preview image with stream.preview.template

I want to have a preview image on the site rather than dynamically change the values for an embedded iframe so I’m using JSON to retrieve the preview image of a streamer and link it. I want to have a custom sized preview image. I see that there is a medium, large, and template option available to choose from. How do I change the template’s value to the height and width pixel sizes I need for my custom frame? Here’s an example of what I’m seeing:

template: https://static-cdn.jtvnw.net/previews-ttv/live_user_lobosjr-{width}x{height}.jpg

I’d assume you just replace {width} and {height} with your required size, in pixels, in the url and load that?
ie https://static-cdn.jtvnw.net/previews-ttv/live_user_lobosjr-150x150.jpg for 150x150.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.