Package: giftoa
DetailsCompiles a native binary that plays a GIF in ASCII on the terminal using
ncurses.Demogiftoa-icat.gif-ocat_gif--invert&& ./cat_gifRequirementsgcc or compatible compiler, you can specify the compiler with-ccor--compilerPython 3.xImageMagickjp2alibncurses-dev development package for your distroOn debian based distributions:sudoapt-getinstall gcc python3 imagemagick jp2alibncurses-devThis may be or may not be required to install pip3:sudoapt-getinstallpython3-pipPip InstallAfter you have installed the above dependencies, you can install thegiftoaandrightgifscripts into your environment using the pip
package manager like this:sudo pip3 install giftoaOr to upgrade:sudo pip3 install giftoa--upgradeDebian PackagingYou can also build two.debfiles for therightgifandgiftoacommands seperately by running the ‘package.py’ script in thedebian_packagingdirectory.The giftoa.debfile will install the dependencies listed above.Once the.debpackages are built you can install each selectively
with:sudo dpkg-ideb_package_here.debsudoapt-getinstall-fBasic Usagegiftoa-igif_file.gif-ooutput_exe [jp2aoptions...]orgiftoa-igif_file.gif [jp2aoptions...](Executable is named after
GIF file)orgiftoa-ihttp://gifwebsite.com/somegif.gif-ooutput_exe [jp2aoptions...]-o/–output must be specified when using a URL.orYou can specify a directory containing JPEG files, the images in the
directory will be used as frames for the animation.They will be sorted in natural order by name, so you should include some
kind of frame number at the beginning or end of each file name.Only JPEG files will be considered, other types of files will be
ignored.If you do this, you must specify the name of the output executable
explicitly.giftoa-idirectory-ooutput_file_name_required.exe [jp2aoptions...]orUse--stdin-framesto read a newline separated list of jpeg frames
from standard input.example:find image_dir-mindepth1 | sort--version-sort| giftoa--stdin-frames-ooutput_exe [jp2aoptions...]Note that--version-sortis specific to GNU sort.The above command emulates how passing a directory to-ibehaves for
the most part.giftoa will not accept non JPEG file paths from STDIN, it will produce
an error when a non JPEG is detected.Using with rightgif companion scriptrightgif.py is a simple client forrightgifIt returns a URL to a GIF that is related to whatever sentence/statement
you pass as an argument.For example:rightgif really fat catsYou dont need to quote your query but you can:rightgif "horrifically obese cats"Pairing it with giftoa:giftoa-i$(rightgif kitties)-okitties_exeorgiftoa-i$(rightgif kitties)-okitties_exe && ./kitties_exeNote: You must specify an output file when passing a URL to giftoa.Frame Delay / FPS-fpsor--frames-per-secondcan be used to set a target FPS for
the animation.If not specified, it defaults to 10 frames per second.This option cannot be used together with-fssor-fsn.The minimum value is 1 and the maximum value is 1000000000, the value
must be a whole number.example:giftoa-igif_file.gif-fps25-ooutput_exe [jp2aoptions...]-fsnor--framesleep-nanosecondscan be used to adjust the delay
in nanoseconds between GIF frames.This option cannot be used with-fps/--frames-per-second.The minimum value is 0 and the maximum value is 999999999, the value
must be a whole number.example:giftoa-igif_file.gif-fsn100000000-ooutput_exe [jp2aoptions...]-fssor--framesleep-secondscan be used to adjust the delay in
seconds between GIF frames. This is in addition to whatever amount of
nanoseconds you specify.This option cannot be used with-fps/--frames-per-second.-fsnwill default to 0 when-fssis used and additional
nanoseconds are not explicitly specified.example (1 second and 100 nanoseconds):giftoa-igif_file.gif-fss1-fsn100-ooutput_exe [jp2aoptions...]The minimum value is 0 and the maximum value is 2147483647, the value
must also be a whole number.C Compiler Selection-ccor--compilercan be used to specify the compiler used to
compile the binaryexamples:giftoa-igif_file.gif-ccclang-ooutput_exe [jp2aoptions...]jp2a OptionsSeejp2a-hfor more options once it is installed.jp2a homepage:https://csl.name/jp2a/