google / gif-for-cli

https://opensource.googleblog.com/2018/06/tenor-gif-for-cli.html
Apache License 2.0
2.93k stars 161 forks source link

--export cuts off right half of gif when using -c #23

Open jingleheimer-schmidt opened 5 years ago

jingleheimer-schmidt commented 5 years ago

When I run, for example, gif-for-cli -c=\ + -ch=1 -cw=1 --rows=100 --cols=90 --display-mode=256 arial\ tramway the entire gif shows up in the terminal window, but if I add a --export=gif.gif to the end it cuts off the right half of the image like this: arialtramway_1 Any ideas on how to export a full image and still use multiple characters in -c?

SeanHayes commented 5 years ago

-c is only intended to work with a single character, I'm a little surprised this works at all.

-cw=1 tells gif-for-cli "each cell is 1 character wide", but you've given it 2 chars. I think it's actually an accident that output isn't cut in half when displayed in a terminal (without exporting, your command outputs 180 cols instead of 90). If you play around with -cw and --cols you might get what you want (-cw=2 seems to work).

jingleheimer-schmidt commented 5 years ago

Ahh, -c only expecting 1 character makes a lot of sense, thanks for the clarification. I've been playing around with -cw and --cols quite a bit trying to make it export correctly but it always seems to cut off part or stretch it out. Thanks for the quick reply! I'll keep trying different combos to see if anything works, but I'm guessing since it's not meant to handle multiple characters my results will continue to surprise me lol