How to resize and change the background colour of an imported image

Description

I have converted an image using: https://lvgl.io/tools/imageconverter to a .c file. However, the image comes with a black squared background despite the image itself is not squared in shape. I would like to change the background colour (preferably to transparent) so it just shows the image. I would also like to resize the image, but I am not sure how to do it. Thank you for your help.

What MCU/Processor/Board and compiler are you using

STM32F769I-DISCO

What LVGL version are you using?

v8.0

What do you want to achieve?

I would like to resize and change the background colour of an imported image and resize it.

Maybe, it will be better to delete background of image and convert with transparent background.

Make sure you convert the image with the “true color with alpha” color format if you want transparency to be preserved.

This helped solve my issue. Thank you very much for your help!