Skip to content
tuanpham-devPublic

About

Screenshot capture and annotation for Linux, Windows and macOS. On-device OCR, translation, QR decoding, uploads, and a CLI. Built with Tauri 2 + React.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SlickShot

A multi-platform screenshot capture and annotation tool built with Tauri 2 + React.

Website: https://tuanpham-dev.github.io/slickshot/ - the source lives in site/ and is published by .github/workflows/pages.yml on every push to main that touches it.

Features

  • Capture modes: region (drag-select, can span monitors), full screen, single monitor, window, scrolling capture, repeat last region, region straight to a file (skipping the editor), pick a color off the screen, measure a distance, and translate/extract text from a dragged region
  • Scrolling capture: pick a region or a window, and SlickShot scrolls the content under it and stitches the frames into one tall screenshot. A draggable pill shows the height as it grows, with Done to keep what it has and Cancel to throw it away. The stitcher measures each real scroll offset rather than trusting the wheel, tolerates furniture that pins itself part-way down (a sticky nav bar), and stops on its own at the bottom of the page
  • Screen recording: record a region or a window to MP4. The same pill as scrolling capture shows a running clock, with Stop to keep the recording and Cancel to discard it. On macOS it can capture system audio and the microphone as two separate tracks, held to the screen stream's own clock so they stay in sync over long recordings
  • Video editor: the recording opens in an editor with a filmstrip timeline, trim handles and lanes of effect clips — cut a stretch out, freeze a moment, speed up or slow down a range, punch in with a zoom. The annotation tools from the image editor come too, and any of them can be limited to part of the clip. Censors are re-applied to every frame rather than flattened, so what they hide stays hidden as the video moves under them. Export to MP4 or a looping GIF, save, copy the file, or upload it
  • Region selection helpers: lock the drag to a 1:1 / 4:3 / 16:9 / 9:16 aspect, type exact pixel dimensions, and snap edges to nearby window borders (hold Alt to bypass)
  • Delay: off / 3s / 5s / 10s / 30s
  • After a capture: open the editor, show a floating thumbnail with Copy / Save / Pin / Edit / Upload and an auto-dismiss timer, or do nothing -- and optionally copy to the clipboard either way
  • Annotation editor toolbar: select, rectangle, ellipse, arrow, line, freehand, text, highlighter, censor, spotlight (dim everything outside a shape), numbered markers, crop, extract text (OCR), pick color, measure, emoji stamp, magnifier -- plus insert image, a gradient/solid-color backdrop, image adjustments, redact personal data and censor faces -- all with undo/redo
  • Shape editing: rotate any shape (Shift snaps to 15 degrees), alignment guides while dragging, five arrow styles with optional curvature, rich text (bold/italic/underline, alignment, background color), and a rule-of-thirds grid while cropping
  • Censor: pixelate, blur or solid fill; Redact personal data finds emails, phone numbers, card numbers (Luhn-checked) and API keys via OCR and covers them; Censor faces detects faces on-device
  • Image adjustments: brightness, contrast, saturation, sharpness, invert, flip horizontally/vertically, and Noir / Mono / Sepia / Fade / Vivid presets -- applied live and identically on export
  • Text extraction: drag a region to OCR it (native Vision on macOS, native Windows.Media.Ocr on Windows, Tesseract on Linux), decode any QR codes in the same region, and optionally translate the result -- from the toolbar's Extract-text tool, the main window's Translate/Extract-text mode, or the CLI's ocr/qr commands. The highlighter can also snap to OCR'd text lines.
  • Export: copy to clipboard, Save As (PNG / JPEG / WebP / AVIF), Quick save to a configured folder, or upload to Imgur / imgbb / Google Drive / an S3-compatible bucket / catbox.moe (with local upload history and one-click delete for providers that support it); export size can be scaled to 100/75/50/33%
  • Pin to screen: float a region as an always-on-top window -- drag to move, scroll to resize, Esc to close -- for comparing a capture against what's underneath it
  • Capture history: every capture you save to disk is kept and browsable, alongside the upload history. Entries store the annotations separately from the image, so reopening one puts the shapes back editable rather than baked in, and saving again updates that entry instead of piling up duplicates. Opt out in Settings, and Clear removes the files, not just the list
  • Open existing images for annotation
  • CLI -- capture, OCR, decode QR, and upload from the terminal; see docs/CLI.md
  • Tray icon + global hotkeys, all rebindable in Settings > Shortcuts (default: PrintScreen region, Shift+PrintScreen screen, Ctrl+PrintScreen window, Ctrl+Shift+PrintScreen translate/extract text; scrolling capture, repeat-region, region-to-file, pick-color, and measure are unbound by default). The tray menu mirrors the main window: every capture mode, a monitor submenu, the delay, capture history and Settings
  • Auto-updates on Windows, macOS and the AppImage (the .deb/.rpm/AUR packages are updated by your package manager); see Building
  • Settings persisted across restarts: shortcuts, save folder, output format/quality/scale, post-capture behavior, theme, translation target language, OCR language, upload provider and credentials, update checks

Documentation

  • Usage — main window, editor toolbar and shortcuts, export options, Pin to screen, Settings reference
  • CLI — capture, OCR, QR, and upload from the terminal
  • Architecture — how capture, coordinate handling, the editor, IPC, and the CLI are built
  • Windows / macOS Test Plan — manual verification checklist for Windows and macOS, plus the recorded results of each pass
  • Building — release bundles, the macOS unsigned-build "is damaged" fix, and the AppImage build's known issues + fix

Prerequisites (Linux / Fedora)

sudo dnf install -y librsvg2-devel pipewire-devel clang-devel mesa-libgbm-devel
  • librsvg2-devel — icon generation (tauri icon)
  • pipewire-devel — xcap's Linux backend links PipeWire (used for its Wayland portal path, even though this app currently only implements the X11 capture path)
  • clang-devel — provides libclang.so, needed by bindgen (a transitive dependency via the PipeWire bindings)
  • mesa-libgbm-devel — libgbm, pulled in by xcap's Wayland/DRM support path

Building the AppImage bundle also needs patchelf (sudo dnf install patchelf) — see Building for that and a couple of other AppImage-specific build quirks.

Other platforms need their standard Tauri prerequisites.

Emoji stamps (optional): the editor's emoji stamp tool draws through the system emoji font. The .deb/.rpm bundles recommend one (fonts-noto-color-emoji / google-noto-emoji-color-fonts); without it -- notably in the self-contained AppImage -- stamps still work but render as monochrome glyphs.

OCR (used by extract-text/translate/the ocr CLI command):

  • macOS uses the built-in Vision framework and Windows uses the built-in Windows.Media.Ocr engine — nothing to install, no external binary on either. Recognition is on-device and covers the languages in Settings > OCR language (subject, on Windows, to the installed language packs).
  • Linux uses Tesseract. The .deb/.rpm bundles declare it as a package dependency (tesseract-ocr + tesseract-ocr-eng on Debian/Ubuntu, tesseract + tesseract-langpack-eng on Fedora), so installing the app pulls it in automatically. The AppImage is self-contained and can't declare dependencies, so AppImage users install it themselves; when it's missing, the app dims the Extract-text/Translate entry points and offers a distro-appropriate install command (with a "Check again" to unlock OCR without restarting) instead of failing on first use.

Development

pnpm install
pnpm tauri dev

Building

pnpm tauri build

Bundles land in src-tauri/target/release/bundle/ (deb/, rpm/, appimage/). The AppImage bundle currently needs a follow-up step (pnpm fix:appimage) after the build — see Building for why and what it does.

Known limitations

  • Scrolling capture drives the mouse wheel, so it needs an input-synthesis backend: XTest on X11 (live-tested), SendInput on Windows and CGEvent on macOS (both compile-verified only so far). It cannot work on Wayland for the same reason capture cannot.
  • Recording audio is macOS-only. ScreenCaptureKit provides a system-audio tap and a microphone can ride alongside it; Windows and Linux record video only, and say so on the pill when an audio toggle is on.
  • A recording covers one monitor. A region dragged across two displays is refused with an explanation rather than recorded from one of them.
  • Editing the timeline drops the audio outside macOS. Speed changes, cuts and freezes all need the sound rebuilt to match; macOS composes it segment by segment through AVFoundation, with pitch correction so a 2x clip still sounds like speech. Windows and Linux export silent video whenever the timeline is edited.
  • Linux recording needs GStreamer and an H.264 encoder (gstreamer1.0-plugins-ugly for x264, or the VA-API plugins for hardware encoding). The packages are listed as dependencies of the .deb/.rpm, and the Record tile dims with an explanation if they are missing at runtime.
  • The Windows and Linux recording backends are unverified. They are written but have never been compiled — cross-checking from the macOS development machine fails inside dependencies needing native toolchains. See the hand-off checklist.
  • Wayland is not implemented. The ScreenCapturer trait is the seam for a future PortalCapturer (xdg-desktop-portal) backend; the app currently only has an X11 implementation.
  • Ctrl+S in the editor appears to be intercepted by a native WebKitGTK/GTK accelerator before it reaches the page's JavaScript — pressing it does nothing on Linux. Save As and Quick save both work correctly via the toolbar/menu; only the keyboard shortcut is affected, and only on Linux — it works on Windows.
  • macOS builds and runs on Apple Silicon (dev build and the CI-built release bundle both verified); core capture/editor/settings functionality has been exercised, though it hasn't had the same systematic pass as the Windows test plan.
  • macOS: a downloaded build says "is damaged and can't be opened." Release builds aren't code-signed/notarized (no Apple Developer account wired into CI), so Gatekeeper rejects the quarantine flag a browser download adds — the "damaged" wording is misleading, the app isn't actually corrupted. Right-click the .app → Open (and confirm through the dialog), or run xattr -cr /path/to/SlickShot.app in Terminal.
  • Windows has been verified live (Windows 10 Pro, mixed-DPI dual-4K-monitor setup) — see Windows / macOS Test Plan for the full results. Everything tested passed or was fixed, including a Pin-window deadlock (building its webview from inside the triggering IPC call could hang the main thread).
  • Windows: PrintScreen may be claimed by Snipping Tool or OneDrive on some setups, preventing the default PrintScreen hotkey from registering; the app surfaces this via a Settings banner (hotkeys:error) — rebind to something else (e.g. Ctrl+Alt+S) in Settings > Shortcuts if that happens.
  • Windows: cmd.exe/PowerShell don't wait for a GUI-subsystem process by default — running slickshot.exe <command> from a script that needs the exit code should use start /wait (cmd) or check the process object explicitly (PowerShell), since the shell prompt otherwise returns before the app finishes.

Packaging

  • packaging/aur/PKGBUILD — Arch Linux slickshot-bin, repackaging the release .deb. See the header for the pre-submission checklist.

License

MIT © Tuan Pham

About

Screenshot capture and annotation for Linux, Windows and macOS. On-device OCR, translation, QR decoding, uploads, and a CLI. Built with Tauri 2 + React.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages