Stuck on image scaling #231
Unanswered
chipsenkbeil
asked this question in
Q&A
Replies: 1 comment 9 replies
-
Hey, sorry for the trouble, could you try setting require("image").hijack_buffer("file.png", winnr, bufnr) |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on finishing up a talk for neovimconf this year, and one thing I'm doing is capturing a screenshot of a webpage to show in neovim, which I display using this plugin.
I can't seem to get the screenshot to properly fill the window I'm creating. If I supply a geometry, I can make the image smaller, but what you see here is as big as I can get it. Is there support for filling a buffer with a single image? Any tips on how to do this? I can confirm that the image is bigger at (Pixel Height: 683, Pixel Width: 1,366) than what is shown. So it isn't the case that the screenshot is actual size.
Code Example
I've tried creating the image and rendering with custom geometries. I've tried hijacking the buffer. Doing an image setup with maximum height set to
nil
doesn't do anything. Same if I set the height percentage to100
.Beta Was this translation helpful? Give feedback.
All reactions