Skip to content

ghostel-kitty: ensure scale of kitty images to avoid cropping#532

Merged
emil-e merged 1 commit into
dakra:mainfrom
pank:pr/add-scaling-to-kitty
Jul 13, 2026
Merged

ghostel-kitty: ensure scale of kitty images to avoid cropping#532
emil-e merged 1 commit into
dakra:mainfrom
pank:pr/add-scaling-to-kitty

Conversation

@pank

@pank pank commented Jul 13, 2026

Copy link
Copy Markdown

Emacs tries to match the height of kitty images to the surrounding text is scale isn't set due to create-image:

create-image is an autoloaded native-comp-function in ‘image.el’.
...
If the property ‘:scale’ is not given and the display has a high
resolution (more exactly, when the average width of a character
in the default font is more than 10 pixels), the image is
automatically scaled up in proportion to the default font.

without the patch:
image

with the patch:
image

this is using ghostel v0.43.0 on windows.

@emil-e emil-e merged commit fccade4 into dakra:main Jul 13, 2026
49 of 50 checks passed
@emil-e

emil-e commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the PR. The kitty graphics support needs a lot of love, but this at least fixes the immediate issue. My plan is to rewrite the code soon.

@pank

pank commented Jul 13, 2026

Copy link
Copy Markdown
Author

I will continue to keep an eye out and test various bits and pieces around this. it's very exciting!

But I mostly use these things on my windows machine, and it remains to be seen if I can make zig actually compile. ($corp laptop acts like it has seen a ghost whenever something ends in .exe)

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.

2 participants