-
-
Save melissacoleman/9c47cc3cdd770a83d10e86818bd0509e to your computer and use it in GitHub Desktop.
from FBpyGIF import fb | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument("-img", action="store", required=True, dest="image_name", help="name of splash image") | |
args = parser.parse_args() | |
BIT_DEPTH = 8 | |
FRAME_BUFFER = 1 | |
fb.ready_fb(BIT_DEPTH, FRAME_BUFFER) | |
fb.show_img(fb.ready_img(args.image_name)) |
To execute the above script, I had to do a few things (I'm running Python3.4):
(a) you must first install FBpyGIF on your system. Installation package and notes are here: https://github.com/chidea/FBpyGIF
Notes: - option2 worked for me
- FBpyGIF-1.0.5-py3.4.egg installed successfully into /usr/local/lib/python3.4/dist-packages/
- However, it failed to install Pillow
(b) you must then install Pillow using the following command (do not use 'sudo' for this command):
python3 -m pip install --user pillow
Notes: pillow-5.4.1 successfully installed
(c) FRAME_BUFFER = 0 worked for me ( 1 as written above did not work on my system (Debian Linux) )
(d) BIT_DEPTH = 24 worked for me ( based on what type of .jpg file you have, BIT_DEPTH = 8 may or may not work. you can save your .jpg with paint, Photoshop, or other program to save to certain bit depth).
Good luck
Must anything be edited to have the script execute properly?