OBS browser source cant render JPEG only image, but can with png

Logs: Log link

When recieving a raid Twitch API returns a link with the user image

My image has this link

Others it comes with PNG

IF you call a browser source with the jpeg image it does not work at all
PNG it works no problem.

The issue is that i want to showcase the user that raided me, and people that uploaded the image in JPEG will not work at all.

Why cant the obs browser source render a jpeg image?

My only solution here is to have obs to work here. because All twitch users will have random images. jpeg or png.
 

koala

Active Member
The one who configured the webserver behind the cdn that hosts these files gave *.jpeg files the wrong mine type of "binary/octet-stream". Has to be "image/jpeg" for jpg images.

Code:
--2024-07-22 23:06:42--  https://static-cdn.jtvnw.net/jtv_user_pictures/adbbcad0-980c-4ecc-85ed-cdcc9e2f4c84-profile_image-300x300.jpeg
Resolving static-cdn.jtvnw.net (static-cdn.jtvnw.net)... 2600:9000:223d:b000:19:f28c:cd92:c761, 2600:9000:223d:c000:19:f28c:cd92:c761, 2600:9000:223d:600:19:f28c:cd92:c761, ...
Connecting to static-cdn.jtvnw.net (static-cdn.jtvnw.net)|2600:9000:223d:b000:19:f28c:cd92:c761|:443... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Content-Type: binary/octet-stream
[...]
==
Length: 7926 (7,7K) [binary/octet-stream]

versus
--2024-07-22 23:09:41--  https://static-cdn.jtvnw.net/jtv_user_pictures/ef8205f8-f357-423a-983a-3d5b7134a06c-profile_image-300x300.png
Resolving static-cdn.jtvnw.net (static-cdn.jtvnw.net)... 2600:9000:20eb:e200:19:f28c:cd92:c761, 2600:9000:20eb:9800:19:f28c:cd92:c761, 2600:9000:20eb:4800:19:f28c:cd92:c761, ...
Connecting to static-cdn.jtvnw.net (static-cdn.jtvnw.net)|2600:9000:20eb:e200:19:f28c:cd92:c761|:443... connected.
HTTP request sent, awaiting response...
  HTTP/1.1 200 OK
  Content-Type: image/png
[...]
==
Length: 71714 (70K) [image/png]

If the server configuration is out of your control, try renaming the file from *.jpeg to *.jpg. The jpeg extension isn't sometimes not known as image extension per default.
 
Top