Move image displayed with --kitty #442
-
First the title for my question is wrong. It was for an earlier question that I found the answer for. I did a modified version of your example number 2 and I've noticed that if I don't use kitty to display my png log and just have the ascii logo then the information gets printed out on the first line. If I use --kitty however the information gets printed on the second line. It's not really a real problem but I am a neat freak. I've looked through fastfetch --help and don't see a parameter for that. edit: I've been experimenting. The png I used was pretty huged so I scaled it to the size needed and that sorta fixed it, but now the information starts on the same line as the fastfetch command was issued on. Visually it looks good but technically it doesn't feel right. Not too worried about it at this point but if anybody knows how to make it behave identically whether or not you're using ascii or an image I'd love to hear it.; |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Please upload the image you were using. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Just to give a little insight on this: The way fastfetch draws is (and must be) the following:
For this to work properly, fastfetch must know the height of the logo in lines. This is no problem for ascii arts, but tricky for images, as their size is measured in pixels. Terminals provide the following APIs to interop:
Fastfetch determines the height of the logo, by calculating Neofetch solves this issue by clearing the whole screen and just going up as much as possible. I didn't want to have such side effects, so i tried my best to calculate the correct height as good as possible for all terminals, image types, graphic protocols, image dimensions, etc. If the calculation is wrong, usually only by a delta of one, going 3 to high isn't usual and should be investigated. The easiest way to quickly work around this is to set an explicit logo height using |
Beta Was this translation helpful? Give feedback.
-
Thank you!! I really didn't want to read the code because for images I suspect it'd take a lot longer for me to understand it. |
Beta Was this translation helpful? Give feedback.
Just to give a little insight on this:
The way fastfetch draws is (and must be) the following:
For this to work properly, fastfetch must know the height of the logo in lines. This is no problem for ascii arts, but tricky for images, as their size is measured in pixels. Terminals provide the following APIs to interop:
Fastfetch determines the height of the logo, by calculating
imagePixelHeight / (te…