Comments on: ESP32 with TFT: Display Image using LVGL – 2.8 inch ILI9341 240×320 (Arduino) https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 06 Jun 2025 13:31:13 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Mark Edwards https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1055379 Fri, 06 Jun 2025 13:31:13 +0000 https://randomnerdtutorials.com/?p=161779#comment-1055379 Irfanview can do conversion to 16 bits. I am not sure about the header for the .h file.

]]>
By: Abhi https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1055359 Fri, 06 Jun 2025 11:35:15 +0000 https://randomnerdtutorials.com/?p=161779#comment-1055359 In reply to Mark Edwards.

My image is the same size as the display (320×240). What tool are you using to convert it into 16 bit? And what are the proper headers for the .h file? Thanks

]]>
By: Mark Edwards https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1055354 Fri, 06 Jun 2025 11:15:45 +0000 https://randomnerdtutorials.com/?p=161779#comment-1055354 You may need to resize your original image to be the same size as the display. I ran into this problem and used Irfanview to do the resizing.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1055338 Fri, 06 Jun 2025 09:48:24 +0000 https://randomnerdtutorials.com/?p=161779#comment-1055338 In reply to Abhi.

Hi.
Maybe you need to rotate your display. It may be internally rotated.
Regards,
Sara

]]>
By: Abhi https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1055149 Fri, 06 Jun 2025 01:10:47 +0000 https://randomnerdtutorials.com/?p=161779#comment-1055149 Is there to draw an image with the TFT library? I have some and my image shows but it is only 1/4 of it yet my pizxel width and height are correct in the code.

]]>
By: Mark Edwards https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1026929 Mon, 14 Apr 2025 16:09:21 +0000 https://randomnerdtutorials.com/?p=161779#comment-1026929 A couple of notes:
If you use your own image, you need to enter it’s width and height into the image.h file. You also need to scale the image to fit on the screen. I use Irfanview for this sort of thing – you can scale as well as get the image information.
You might also mention using lv_obj_align() to put the image somewhere other than in the center…

]]>
By: Andrei https://randomnerdtutorials.com/esp32-tft-display-image-lvgl-arduino/#comment-1002346 Fri, 24 Jan 2025 08:38:12 +0000 https://randomnerdtutorials.com/?p=161779#comment-1002346 pleas echange this pin : D/C GPIO 2 to GPIO 4 or something else .
this gave me so much trouble when I tried to use the Wifi connection , and it apparently is a known issue
I use a ESP32 development board where the GPIO 2 is connected to the led used by WiFi
it gave me lots of false readings on the touchscreen readings and freeze the TFT display and even got a BSOD on my PC fi I left it run like that a bit longer .

]]>