kImageAnnotator installed but not ksnip?

i noticed that the package kimageannotator is installed by default with Garuda. But from what I can tell, you can 't run it on it's own, it's a part of ksnip?

But then ksnip isn't installed by default?

garuda-inxi
System:
  Kernel: 6.3.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=f421b3e9-feb7-49ce-885d-088d8fed2dde rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 module_blacklist=hid_sensor_hub nvme.noacpi=1 ibt=off
  Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 wm: kwin_wayland vt: 2
    dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Framework product: Laptop (12th Gen Intel Core) v: A4
    serial: <superuser required>
  Mobo: Framework model: FRANMACP04 v: A4 serial: <superuser required>
    UEFI: INSYDE v: 03.05 date: 08/23/2022
Battery:
  ID-1: BAT1 charge: 20.3 Wh (37.2%) condition: 54.6/55.0 Wh (99.2%)
    volts: 15.6 min: 15.4 model: NVT Framewo type: Li-ion serial: <filter>
    status: charging cycles: 31
  Device-1: hidpp_battery_2 model: Logitech Wireless Mouse MX Master
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: 12th Gen Intel Core i5-1240P bits: 64 type: MST AMCP
    arch: Alder Lake level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x42A
  Topology: cpus: 1x cores: 12 mt: 4 tpc: 2 st: 8 threads: 16 smt: enabled
    cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
    L2: 9 MiB desc: 4x1.2 MiB, 2x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 2108 high: 2975 min/max: 400/4400:3300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 2975 2: 2100 3: 2531
    4: 2100 5: 2869 6: 2100 7: 1597 8: 2100 9: 2896 10: 2081 11: 2360 12: 2100
    13: 2387 14: 851 15: 421 16: 2273 bogomips: 67584
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports: active: eDP-1
    empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0 chip-ID: 8086:46a6
    class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 res: 2256x1504 size: N/A modes: N/A
  API: OpenGL v: 4.6 Mesa 23.1.1 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0403
  API: ALSA v: k6.3.4-zen1-1-zen status: kernel-api tools: N/A
  Server-1: PipeWire v: 0.3.71 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: a6:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp166s0 state: up mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
  IF-ID-2: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Bluetooth:
  Device-1: Intel AX210 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:3 chip-ID: 8087:0032
    class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 1.82 TiB used: 408.7 GiB (21.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7 temp: 49.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 158.98 GiB (89.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 2 GiB size: 2 GiB (99.80%) used: 576 KiB (0.0%)
    fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 158.98 GiB (89.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 158.98 GiB (89.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-5: /var/tmp raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 158.98 GiB (89.8%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.06 GiB used: 20.79 GiB (66.9%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 66.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 538 Uptime: 1d 41m wakeups: 56311 Memory: available: 31.06 GiB
  used: 24.07 GiB (77.5%) Init: systemd v: 253 default: graphical
  tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: 2005
  pm: pacman pkgs: 1996 libs: 432 tools: gnome-software,octopi,pamac,paru
  pm: rpm pkgs: 0 pm: flatpak pkgs: 9 Shell: fish v: 3.6.1 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
  System install date:     2023-05-04
  Last full system update: 2023-05-29 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:

It is Ksnip which depends on Kimageannotator:

pacman -Sii kimageannotator
Repository      : extra
Name            : kimageannotator
Version         : 0.6.1-1
Description     : Tool for annotating images
Architecture    : x86_64
URL             : https://github.com/ksnip/kImageAnnotator
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : qt5-svg  kcolorpicker
Optional Deps   : None
Required By     : gwenview  ksnip
[...]

pacman -Sii ksnip
Repository      : extra
Name            : ksnip
Version         : 1.10.1-1
Description     : Qt-based screenshot tool that provides many annotation features
Architecture    : x86_64
URL             : https://github.com/ksnip/ksnip
Licenses        : GPL2
Groups          : None
Provides        : None
Depends On      : hicolor-icon-theme  kimageannotator  qt5-x11extras
[...]

My guess would be an effort was made to simplify the package base, and cutting back to one screenshotting tool seems reasonable but probably Spectacle was chosen for this reason or that.

This is off-topic, but I started using Ksnip on my Sway installations when Flameshot became super unreliable on wlroots machines:

for_window [app_id=org.ksnip.ksnip] floating enable, resize set 60ppt 75ppt|
bindsym print exec grim -g $(slurp) Pictures/screenshots/$(date +'ss_%m-%d-%y-%H%M%S.png') && exec ksnip -e Pictures/screenshots/$(date +'ss_%m-%d-%y-%H%M%S.png')|

Grim and Slurp take the screenshot and pass the image to Ksnip for annotation. A little hacky perhaps, but it works great!

Edit:

I realized I didn't really respond to this:

You don't run it on its own, but it can be used with other applications besides Ksnip. Here is an example of a thread where they made some development choices with Spectacle in mind:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.