ksnip icon indicating copy to clipboard operation
ksnip copied to clipboard

Annotation items blurry and pixelated

Open amamut opened this issue 5 years ago • 18 comments

Taking a screen region snapshot on my 3840x2160 (DPI: 165) screen results in the screenshots being extremely blurry and unreadable:

image

To Reproduce Steps to reproduce the behavior:

  1. Type ksnip -r into terminal
  2. Select region.
  3. Look at snapshot created in ksnip

Expected behavior The image should be sharp and should be able to read the text.

Desktop (please complete the following information):

  • OS: Linux
  • Distribution in case of Linux: Arch Linux (5.11.2-arch1-1)
  • Window System in case of Linux: X11
  • ksnip version: ksnip 1.8.1-2
  • How did you install ksnip: yay -S ksnip

amamut avatar Mar 17 '21 20:03 amamut

Just for testing purpose, can you please check if you can reproduce this issue with the AppImage from the continuous build of version 1.9.0 here

DamirPorobic avatar Mar 17 '21 21:03 DamirPorobic

I downloaded the appimage and ran it, but the version is still listed as 1.8.1. Is that expected?

Anyways, same results:

image

amamut avatar Mar 18 '21 13:03 amamut

@amamut can you please check if you are maybe facing this issue https://github.com/ksnip/ksnip/issues/611

Might not be the same but it's worth trying, one user is seeing pixelated screenshots with HiDPI when auto copy to clipboard enabled and with it disabled (which is the default) it looks ok.

DamirPorobic avatar Mar 20 '21 16:03 DamirPorobic

This should be fixed now in 1.8.2 and 1.9.0

DamirPorobic avatar Mar 21 '21 10:03 DamirPorobic

@DamirPorobic it looks a lot better. Only issue now is that arrows are pixelated:

image

amamut avatar Mar 22 '21 12:03 amamut

I cannot reproduce that. You just take a screenshot and then draw an arrow?

Can you double check with AppImage?

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

Yes that's all I did. The screenshot came through very sharp but when adding an arrow, it comes through very jagged and pixelated (as in the screenshot).

I am currently using the AppImage (1.9.0-continuous)

amamut avatar Mar 22 '21 16:03 amamut

Very strange, just tested the AppImage myself, works. Checked the code, Antialiasing is enabled.

Is it with all items or just the arrow? Can you try lines, rect, number badges?

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

Do you use Gnome, Plasma or another Window Manager?

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

It seems to be happening with everything:

image

Blowing up the image you can see a clear difference between the font and the diagonal red line:

image

I'm currently use i3-gaps

amamut avatar Mar 22 '21 16:03 amamut

Whats the simplest way to setup a VM like you have there?

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

This is how it looks for me image

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

What is your setup?

amamut avatar Mar 22 '21 16:03 amamut

I run OpenSUSE 15.2 with Plasma. Tried to install Arch Linux in VirtualBox but it doesn't look like something that can be down without reading a lot of guides.

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

Yeah installing Arch is a bit of a process but here is guide which lists every command quickly: https://wiki.learnlinux.tv/index.php/How_to_Install_Arch_Linux

Some items are optional and some may be need to change depending on Disk arrangement.

amamut avatar Mar 22 '21 16:03 amamut

Dude, what the ... xD

image

I don't have the mental capacity to do that tonight. I might look into it in next couple of days when I find some time.

DamirPorobic avatar Mar 22 '21 16:03 DamirPorobic

yeah np. I think in its current form its usable for me as I don't annotate very often. Thanks for the help though!

amamut avatar Mar 22 '21 16:03 amamut

I'm running at 125% display scaling and ksnip 1.9.2 is almost working fine now - the screenshot is taken and saved with no distortion. But if I open an existing PNG using ksnip -e %f, the image becomes larger and pixelated.

rustyx avatar Mar 21 '22 17:03 rustyx