Skip to content

Set GIF quality #69

Closed
Closed

Description

@jacobtomlinson

All the GIFs I'm getting seem a little blurry. Is there any way to set the quality?

Output doc/source/images/operator-install.gif

Set FontSize 18
Set Width 1200
Set Height 200
Set Padding 20
Set TypingSpeed 25ms

Type "helm install --wait --repo https://helm.dask.org --create-namespace -n dask-operator --generate-name dask-kubernetes-operator"

Sleep 500ms

Enter

Sleep 5s

Enter
Type "kubectl get daskclusters"

Sleep 500ms

Enter

Sleep 2s

Enter
Type "kubectl get pods -A -l app.kubernetes.io/name=dask-kubernetes-operator"

Sleep 500ms

Enter

Sleep 5s

operator-install

Activity

  1. maaslalani commented on Oct 28, 2022

    @maaslalani
    Contributor

    One thing you can try is to increase the Height and Width and increase the FontSize and then scale it down after.

    Set Height 2400
    Set Width 400
    Set FontSize 36
    
  2. maaslalani commented on Oct 28, 2022

    @maaslalani
    Contributor

    I think there might be a few things we can do somethings on our end regarding font anti-aliasing, etc... as well

  3. maaslalani commented on Oct 29, 2022

    @maaslalani
    Contributor

    @jacobtomlinson This is what I get when I run the VHS with the following settings:

    Set FontSize 36
    Set Width 2400
    Set Height 400
    Set Padding 40

    I doubled all the values and it came out crispier. Hope that helps!

    operator-install

  4. jacobtomlinson commented on Oct 31, 2022

    @jacobtomlinson
    Author

    Oooh that's much better, thanks @maaslalani!

  5. lrstanley commented on Jul 26, 2025

    @lrstanley

    @jacobtomlinson This is what I get when I run the VHS with the following settings:

    Set FontSize 36
    Set Width 2400
    Set Height 400
    Set Padding 40

    I doubled all the values and it came out crispier. Hope that helps!

    operator-install operator-install

    Worth noting that at least with the current version of VHS, scaling up the height/width and font size, also seems to affect all of the timing for everything. The resulting file runs about 50% faster. It gets worse if you also increase the framerate (which shouldn't impact the duration, only the amount of frames in the GIF).

  6. 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 helpful 😄

  7. dimk90 commented on Jul 22, 2026

    @dimk90

    @jacobtomlinson This is what I get when I run the VHS with the following settings:

    Set FontSize 36
    Set Width 2400
    Set Height 400
    Set Padding 40
    I doubled all the values and it came out crispier. Hope that helps!

    operator-install operator-install

    Oh, this 2× resolution workaround reveals an even more annoying problem: playback speed changes with the resolution 🤦. Adjusting the resolution should not change the recording’s timing or duration.

  8. dimk90 commented on Aug 25, 2026

    @dimk90

    tmux + asciinema + agg avoids both problems here - no GIF quality loss and no timing drift at higher resolutions. Wiring them by hand is more work than a .tape, so there is S-VHS, a small bash wrapper providing a tape-like recording style.

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

      ⌂ 换网址