This is the source code behind Fieri Frames. If you're here, you must love existential angst and bold flavors. Who can blame you?
Anyway, as you can tell, there's not much in this repo. This bot is powered by another terrible library I wrote, called stills. The setup for this thing is the most convoluted thing in Flavortown, so if you're trying to contribute, you must really, really love bold flavors. Guy bless you.
To change the way the stills generator works, you're really going to have to change the stills
engine. So these instructions will show you how to pull down that repo and link things up locally so you dev on both the fieriframes
bot (which, again, does nothing) and the underlying engine.
- imagemagick:
brew install imagemagick
- nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
- Fork
https://github.com/shahkashani/stills.git
and replace the URL in the step below with your fork git clone https://github.com/shahkashani/stills.git
cd stills
nvm install
npm install
npm link
cd ../
git clone https://github.com/shahkashani/fieriframes
cd fieriframes
nvm install
npm install
npm link stills
Now, any changes you make to stills
will automatically be picked up by fieriframes
. If you make something cool, please make a PR from your stills
fork against the master repo.
cd fieriframes
mkdir videos stills gifs
- Put some videos in the
videos
folder you just made npm run stills
for stillsnpm run gifs
for gifs
That'll create random stills/gifs into stills
and gifs
.
By default, it also adds captions and makes sure a certain percentage of images contain Guy Fieri.
If you want more granular control over how the stills are generated (i.e. the number of stills per episode, how many percentage of stills should have captions, etc.), run:
./node_modules/.bin/stills --help
./node_modules/.bin/gifs --help
If you want to change the stills generation code, this file is a good place to start.
If you want to post the stills you generate, you basically need to set things up in an .env
file based on these instructions
I think that's it. I can't guarantee that any of this will work since I probably have a thousand dependencies beyond imagemagick I don't remember installing, but let me know if you run into any troubles.