gifcast icon indicating copy to clipboard operation
gifcast copied to clipboard

Add terminal size and apng support

Open AnderssonPeter opened this issue 3 years ago • 5 comments

It would be awesome if you could add options to specify terminal size and export to apng!

AnderssonPeter avatar Dec 23 '21 11:12 AnderssonPeter

"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?

dstein64 avatar Dec 23 '21 20:12 dstein64

Could you implement aspect ratios? I.e. Super Ultra Wide renders are not very useful...

miron avatar Apr 09 '22 03:04 miron

I guess my idea just to crop the output to the specified size.

AnderssonPeter avatar Apr 09 '22 06:04 AnderssonPeter

@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."

dstein64 avatar Apr 10 '22 02:04 dstein64

@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 :)

miron avatar Apr 10 '22 02:04 miron