I have created an image in JPG with 160x128 Pixels, 144 dpi and 24 Bitdepth. But with every exporting try in GIMP it can't be read. This is the Code in Python:
path_startImage='/home/pi/logo.jpg'
with open(path_startImage,'rb') as f:
logo=f.read()
Now I finally have found a solution. It seems GIMP (and other tools) are putting too much info into the jpeg and the LCD160CR can't read it correctly.
Steps I have done:
- sudo apt-get install libjpeg-turbo-progs
- jpegtran logo.jpg > logo_opt.jpg
- Changed the path_startImage to the new logo:
path_startImage='/home/pi/logo_opt.jpg'
Keine Kommentare:
Kommentar veröffentlichen