Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ksnip - An Image Editing/Annotation Tool

Install With PPA

sudo add-apt-repository ppa:nemonein/ksnip -y \
  && sudo apt update \
  && sudo apt install ksnip -y

This will install Ksnip version 1.9.1 on Ubuntu 20.04 at the time of writing this post.

Install With Snap

For those who wish to install through the snap package manager, you can install with:

sudo apt install ksnip

CLI Commands

Once having installed Ksnip, you may wish to use it as your default screenshot program. In order to do this, you will need to know the options you can pass it from the CLI:

  • --help - list all the options
  • --rectarea - select an area to take a screenshot of.
  • --lastrectarea - take a screenshot of the last selected area.
  • --fullscreen - take a fullscreen screenshot
  • --active - take a screenshot of the active window
  • --delay - set a delay in seconds before taking the screenshot.
  • --cursor -- capture the mouse cursor in the screenshot
  • --save - save the screenshot to the default location without opening in the editor.

Add to Nemo File Browser

If you want to be able to right-click an image and open with ksnip, you may need to create the following file:

editor ~/.local/share/applications
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=true
Exec=ksnip %f
Icon-Name=ksnip
Name=ksnip
Comment=Image annotation tool

References

Last updated: 22nd July 2023
First published: 10th October 2021