File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 30
30
from serial .tools .list_ports import comports
31
31
32
32
from library .lcd .lcd_comm import Orientation , LcdComm
33
- from library .lcd .serialize import image_to_BGRA , image_to_compressed_BGRA , chunked
33
+ from library .lcd .serialize import image_to_BGRA , image_to_BGR , chunked
34
34
from library .log import logger
35
35
36
36
@@ -431,7 +431,9 @@ def _generate_update_image(
431
431
img_data , pixel_size = image_to_BGRA (image )
432
432
else :
433
433
# BGRA mode on 3 bytes: [6-bit B + 2-bit A, 6-bit G + 2-bit A, 8-bit R]
434
- img_data , pixel_size = image_to_compressed_BGRA (image )
434
+ #img_data, pixel_size = image_to_compressed_BGRA(image)
435
+ # For now use simple BGR that is more optimized, because this program does not support transparent background
436
+ img_data , pixel_size = image_to_BGR (image )
435
437
436
438
for h , line in enumerate (chunked (img_data , image .width * pixel_size )):
437
439
if self .sub_revision == SubRevision .REV_8INCH :
You can’t perform that action at this time.
0 commit comments