Skip to content

fix(screenshot): grim -l 0 for fast PNG compression - #10230

Closed
kvnloo wants to merge 0 commit into
omacom:quattrofrom
kvnloo:fix/10049-grim-png-level
Closed

kvnloo wants to merge 0 commit into
omacom:quattrofrom
kvnloo:fix/10049-grim-png-level

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • pass grim -l 0 on slurp/copy/save capture paths
  • screenshot PNGs skip zlib level-6 default that dominated 6K capture time

Fixes #10049.

Verification

  • bin/omarchy-capture-screenshot grim invocations all carry -l 0

@chessing234 chessing234 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grim -l 0 on all three paths is the right trade for screenshot latency.

@kvnloo

kvnloo commented Sep 12, 2026

Copy link
Copy Markdown
Contributor Author

Salvaged into the Chessing234-approved leftover wave: #11555

Cherry-picked onto current quattro with author normalized to @kvnloo (Kevin Rajan <7121943+kvnloo@users.noreply.github.com>; lesseradmin is the same account). Please merge #11555 as the tranche and close this head as salvaged.

@kvnloo

kvnloo commented Sep 22, 2026

Copy link
Copy Markdown
Contributor Author

Tip screenshot path is omasnap now (bin/omarchy-capture-screenshot); grim -l 0 salvage dropped from the Chessing leftovers re-cut (#12956).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Screenshots take ~1.6s on 6K: grim uses default PNG compression (-l 6)

2 participants