gifcast
gifcast copied to clipboard
Add terminal size and apng support
It would be awesome if you could add options to specify terminal size and export to apng!
"It would be awesome if you could add options to specify terminal size and export to apng!"
There is currently an option, size
, for changing the resolution of the rendered output.
For the size of the terminal in cells, that matches the size used when recording (e.g., 20 rows and 80 columns). Altering the cell layout for rendering would presumably be problematic, since the recorded data corresponds to the cell arrangement used when recording.
@AnderssonPeter, can you provide additional details on the size functionality you're proposing?
Could you implement aspect ratios? I.e. Super Ultra Wide renders are not very useful...
I guess my idea just to crop the output to the specified size.
@AnderssonPeter, thanks for the additional details. I just added a new option, shave, for controlling how many cells are cropped from each edge. For example, to truncate the rightmost 20 cells, enter 20 in the right box of the shave option.
@miron, can this new option be used to address the wide renders you're observing? If not, can you provide additional details on the functionality you're requesting, and a minimal sample cast file that currently exhibits the problem? My initial thought matches what I mentioned above, which would seemingly apply for changes to the aspect ratio after recording:
"Altering the cell layout for rendering would presumably be problematic, since the recorded data corresponds to the cell arrangement used when recording."
@AnderssonPeter, thanks for the additional details. I just added a new option, shave, for controlling how many cells are cropped from each edge. For example, to truncate the rightmost 20 cells, enter 20 in the right box of the shave option.
@miron, can this new option be used to address the wide renders you're observing? If not, can you provide additional details on the functionality you're requesting, and a minimal sample cast file that currently exhibits the problem? My initial thought matches what I mentioned above, which would seemingly apply for changes to the aspect ratio after recording:
"Altering the cell layout for rendering would presumably be problematic, since the recorded data corresponds to the cell arrangement used when recording."
It's perfect, I just specify the right shave of 250 and it looks gorgeous :)