Giter Club home page Giter Club logo

fbpygif's People

Contributors

chidea avatar flutterhacker avatar vxlerieuwu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fbpygif's Issues

KeyError: 'duration'

i put my path from the old version (versioning...) in,
everthing was the same, and got this error:

fbpy2

Image is not displayed correctly, looks interpolated

I display a gif anim with the same resolution as my display (480x320) on a pi zero w with a GPIO screen.
command : FBpyGIF -fb 1 ./happy.gif

The result is strange, it looks like an interpolation of image. As I can't describe it, here is a video and the original gif anim:

20221118_081600.mp4

angry

I run python 3.9 on Debian GNU/Linux 11 (bullseye)

without cmd-line ....better to show help?

i was irritated because calling main.py without cmd-line args give no help,
but starts the color-mode.
wouldn it be more usual for oritentation to throw out help, if called with no args โ“

and besides: is this i typo-error in the help? shouldn it be the other way round?
"no-loop" make looping forever โ“

-nl, --no-loop Make entire playlist loop forever.

overlapping display of gif

Thanks for sharing this nice tool.
I've tested it on a Raspberry Pi 3 on Raspbian Jessie Lite with a 5" HDMI screen.

$> python3 main.py -fb 0 ezgif-2-7fe66daa6e.gif

this GIF (wide):
ezgif com-gif-maker 9

renders like this (cloned and overlapping):
cat

I've tried playing with -w flag with no success.
Any idea?
Thanks!

-nl --no-loop causes gif to loop 2x times instead of 1x

When using the -no or --no-loop flag, the gif is looped 2x times instead of 1x. I tested this on Raspberry Pi 3 Model B Rev 1.2

pi@raspberrypi:~ $ FBpyGIF -nl myTestGif.gif
main called with None
main argv revision with ['-nl', 'myTestGif.gif']
Press Ctrl+C to stop playing
files to play: ['myTestGif.gif']
Press Ctrl+C to stop playing
files to play: ['myTestGif.gif']

Improvement: Help-text with example for RGB-switch

i do this all as a noob, to see if it is self-explanatory.
maybe i could be a help for others, if the help-text of the RGB-switch could show an example?
an expample for Red-Green-Blue Values with valid-scope?

look at my errors, may this explains what i mean...
fbpy-clear

"crying alice" is looping forever

with "-al 15" this gif seems to loop forever,
while mostly my other animated gifs end/change to the next after some time.
a bug? fixable?

1560648

Pre-load GIF images?

I was planning to use FBpyGIF in my project to show GIF looping animations based on events.
Thanks to #12 it now perfectly works, however the load time is quite long for some GIFs:
(on a Raspberry Pi 3)

  • 5 secs to load the program & play 1 GIF
  • 4 secs to play this same GIF in a playlist (after program is loaded)

I can't wait so long as GIF are illustrating the events in real time.

I see in the README.md you have planned to:

  • Background loading of next animation file to reduce loading delay between them

Would you consider the possibility to load/prepare the whole playlist in memory and allow showing the right one based on events/signals/other?
I've looked into main.py and have the feeling that fb.ready_fb() could be what I'm looking for.
I'm ready to write some Python code if you would provide such library.

Many thanks in advance for your help.

no module named shuffle

hi,
i just installed FBpyGIF with pip3 on a new raspbian stretch (9) on a new raspberry 3.

i got a module-missing error.. (maybe already known)
from last year i remember something, that the pip-repository was not updated?
is it this?

root@raspi3a-tft-display:/usr/src/media# FBpyGIF -gd 10 -ad 10 -pv -sf -vb /usr/src/media/
main called with None
main argv revision with ['-gd', '10', '-ad', '10', '-pv', '-sf', '-vb', '/usr/src/media/']
Press Ctrl+C to stop playing
files to play: ['/usr/src/media/mona-lisa-designboom-01.gif', '/usr/src/media/Sergio-Albiac-stardust-portraits-designboom-02.jpg', ... '/usr/src/media/sergio-albiac-learnt-nothing-designboom-07.jpg']
Traceback (most recent call last):
  File "/usr/local/bin/FBpyGIF", line 7, in <module>
    from FBpyGIF.__main__ import main
  File "/usr/local/lib/python3.5/dist-packages/FBpyGIF/__main__.py", line 10, in <module>
    main()
  File "/usr/local/lib/python3.5/dist-packages/FBpyGIF/__main__.py", line 8, in main
    from .main import main as m
  File "/usr/local/lib/python3.5/dist-packages/FBpyGIF/main.py", line 95, in <module>
    main()
  File "/usr/local/lib/python3.5/dist-packages/FBpyGIF/main.py", line 73, in main
    from shuffle import sfcycle
ImportError: No module named 'shuffle'
root@raspi3a-tft-display:/usr/src/media# FBpyGIF -gd 10 -ad 10 -pv -sf -vb /usr/src/media/

Feature-Request: clear screen/fb

hi,
i cloned repository today. very cool improvements...

i used the call of fb.py to clear the frambuffer after my experiments. was a cool function.
now fb.py -> main.py default without cmd-args to color-mode.

may you want to consider to code a -switch to clear the framebuffer like before?

great thing... since the beginning i am using it on a regular basis as picture-fame ๐Ÿ˜„

Feature-Request: Portrait/Landscape images, stretching-values...

my main-wish:

i have one folder with pictures of different orientation (portrait/landscape)
and different sizes (mostly near to full-hd 1920x1080, but all more or less)

i have two screens as picture frames running.
one is normal in landscape orientation, one stands up in portrait-orientations and there is the raspberry settings adjusted to 90 degree screen rotation.

everythings running more or less fine. exexpt:

all images are zoomed to fit the full-screen regardless of their orientation.

first, it would be great, if i could use an option-switch to let fbpy show only pictures with portrait-oritientation on my portrait-monitor.
And also only landscape-orientated-pictures on my landscape monitor.

second: it would be great, if i could set steps or percentage levels for zooming/shrinking.
so i could say: landscape-images are only allowed to get zoomed/and-or/shrinked 10% to fit the screen,
otherwise left out and not showing as ugly streched.

also the same as a separate option for all my portrait-images on my portrait-monitor

Extension to this:
one can think of levels (1-5?) for zooming/streching/shrinking instead of percent, or an association of steps ie. 1-9 as a shortversion of 10-90% percentage levels...

one could think of allowed zoom/shrink steps/levels bound separatly to certain sized images (small 200x300, medium 500x500, HD 1000x1000) or the like.

๐ŸŽ ๐ŸŽ ๐ŸŽ ๐ŸŽ ๐ŸŽ
๐Ÿ˜ƒ ๐Ÿ˜ƒ ๐Ÿ˜ƒ ๐Ÿ˜ƒ ๐Ÿ˜ƒ ๐Ÿ˜ƒ

Feature-Request: Screen on/off

Just for future-development: (i see you improved a lot on fb.py) ๐Ÿ˜„

i switch of my raspberry-pi display with the tvservice -o/p utility.
if i switch the hdmi-port, my monitor goes into powersave with only 1W standby.

i do this outside the fb.py. maybe its a bit out of scope, but i could thinkoff for fb.py as a full-solution, where the monitor-switching on/off could be at the end of all looping.
or over net-sockets/ports. this could extend fb.py to an all-inclusive solution in the future...
๐Ÿ˜‰

shuffle not shuffling - or something else broken?

i had it running for 2 hrs, the image was not changed?
what can i check?

see the screenshot. nothing has changed for 2hrs...

root@raspi-display1:/usr/src/FBpyGIF# python3 main.py -pv -sf -vb -gd 100 /home/pi/fbpy/
Press Ctrl+C to stop playing
files to play: ['/home/pi/fbpy/tumblr_n5me0pJ6xH1qlzc82o1_r2_500.gif', '/home/pi/fbpy/tumblr_na9689nmDF1rfp0s4o1_400.gif', '/home/pi/fbpy/tumblr_n0dfidiOdm1rc3rlfo1_400.gif', '/home/pi/fbpy/Wang Guofeng-pixelated2014no4.jpg', '/home/pi/fbpy/tumblr_mlwmqnqo3s1qlzc82o1_400.gif', '/home/pi/fbpy/Wang Guofeng-pixelated2014no7.jpg', '/home/pi/fbpy/Wang Guofeng-event-transformed-no11.jpg', '/home/pi/fbpy/tumblr_nz4agevEHC1qhp1zwo1_500.gif']
playing : /home/pi/fbpy/tumblr_na9689nmDF1rfp0s4o1_400.gif

โ“

py-shuffl100

Flashing black box in corner of output

I've used FBpyGIF with a gif and the color test mode and on each occasion there is a blinking black box in the bottom-left of the screen. This appears to be the terminal input cursor. Here's a video I recorded with my phone:

new

Tested on a Raspberry Pi 2 B+ and Raspberry pi 3

Aspect ratio/stretching

I have a gif that is 640x480 that I want to play on a 1920:1080 screen whilst maintaining aspect ratio. When I play this gif using FBpyGIF it stretches to fill the whole screen. Is there any way to play the gifs full screen whilst maintaining aspect ratio?

Here's the gif I'm using

out

And what it looks like in FBpyGIF (captured from a Raspberry Pi using a HDMI capture card, hence the fuzziness)

sss

files in a directory was load random

I have prepared a batch bmp files, ie 0001.bmp ~0120.bmp.
but those files was displayed in random sequence.
I have to add a sorted function in /usr/lib/python3.7/site-packages/FBpyGIF/path.py
now it works as expect.

Improvement: calling main.py without arguments can display help/hint for -help

calling main.py presumes, that you call python3 in front.
(i learned this times ago in the beginning).

now when i call main.py without arguments, i dont see a hint for help.
it is on github mentioned, but i does not come out of the script.

maybe helpful to display a notice on comandline, that help comes from calling main.py -h ?

mainpy

-ad ANIMATE_DELAY has no effect

as i use "-ad 10" i assume, my first animated gif would end after 10 seconds,
but it is looping forever.

as i use "-al 5", same animated gif ends after a while, so the others to.

something broken? could you investigate/update?
thanks a lot
๐Ÿ‘

greyscale output on C.H.I.P.

This is very cool! I am trying it out on a C.H.I.P. It is outputting the GIFs in black-and-white. -ct outputs vertical black and white stripes. Suggestions?

debug/runtime option? show status

as you improved/expanded everthing a lot,
i feel encouraged to make some suggestions... ๐Ÿ˜ฐ

i start fb.py as a system.service on my raspberry, but while testing i start it from the command-line.
than while running, i only see the static file-list.

i cannot see which image is actually displayed. (i.e.: sample.jpg)
i cannot see which nr this is (i.e. image 5/324)
i cannot see how long fb.py is running (i.e. running for ...mins../hrs...)
i cannot see anymore with which switches i started (i.e. status: looping/-sf -nc.)
...
one could think of some more for debugging purpose or information

  • image-dimesion (800x600)..
  • image orientation (protrati/landscape 600x800 vs 800x600
  • colour depth
  • loop-time
    ...

๐Ÿ˜… ๐Ÿ˜‡

debughelper

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.