gif-for-cli icon indicating copy to clipboard operation
gif-for-cli copied to clipboard

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

Open jingleheimer-schmidt opened this issue 7 years ago • 2 comments

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?

jingleheimer-schmidt avatar Jan 04 '19 21:01 jingleheimer-schmidt

-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).

SeanHayes avatar Jan 04 '19 22:01 SeanHayes

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

jingleheimer-schmidt avatar Jan 04 '19 22:01 jingleheimer-schmidt