'Python Discord Embedded Message Thumbnail Not Showing .jfif Images

I have a bot that sends embedded messages with thumbnails, but I noticed that .jfif images thumbnails are not being shown.

My question is does Discord support .jfif images on embedded messages thumbnails?



Solution 1:[1]

The only images Discord supports are .png, .jpg, .jpeg.

If it's a local image file, you can try using PIL

The code below might help.

from PIL import Image
  
img_png = Image.open('test.jfif')
  
img_png.save('test.png')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1