Skip to content

Allow size control by line count (height) and character count (width) #578

Open

Description

@dusktreader

Is your feature request related to a problem? Please describe.
I love with vhs that you can declaratively define what you would like to show. However, specifying the with and height of the output is non-intuitive. It's a frustrating of setting sizes, producing a gif, tweaking sizes, producing a gif, tweaking sizes...

Describe the solution you'd like
It would be much nicer to be able to define the size of the output in terms of the text output. It should be possible to set the height by the number of lines and the width by the number of characters.

Describe alternatives you've considered
I've used Width and Height to tinker with the output size, but it's not a lot of fun.

Additional context
asciinema provides size controls by "cols" and "rows": https://docs.asciinema.org/manual/player/options/#cols

Activity

  1. jackspirou commented on Aug 6, 2025

    @jackspirou

    I started a discussion #644 around a working (for me) SVG implementation fork at https://github.com/agentstation/vhs - might be relevant or helpful 😄

  2. mvanhorn commented on Mar 26, 2026

    @mvanhorn

    Implemented in #731 - adds Set Lines, Set Columns (and aliases Rows, Cols) that compute pixel dimensions from font metrics.

  3. dimk90 commented on Aug 25, 2026

    @dimk90

    asciinema's cols/rows sizing you referenced is nice - and you can have tape-like recordings with it via S-VHS, a small bash wrapper around tmux + asciinema + agg. The terminal is sized directly with SetCols / SetRows and the resolution follows font size -> no tweak-render-tweak loop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址