Skip to content
DailyXplorerPublic

About

A simple screenshot tool : capture, annotate, blur, measure, read text and pin.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Repository files navigation

ShotCraft

A simple, private screenshot tool for macOS. Capture an area, a window or the full screen, then annotate, blur, measure, read text (OCR) and pin the result on screen. Everything stays on your Mac: no account, no upload, no telemetry. The only network access is the update check in release builds, which the app asks about first.

ShotCraft is written in Rust. It is an early version (0.2.4).

Features

Capture

  • Area, any window, repeat the last area, and full-screen captures. Fullscreen captures the display the mouse pointer is on, and All Displays puts every display in one picture laid out like your desk.
  • Active Window captures the frontmost window of the app you are using, without clicking. Use it from a hotkey, or from the menu bar icon menu, which targets the app that was in front before you opened it. When that app has no capturable window, you pick a window instead.
  • A delayed capture (3 seconds by default, 5 or 10 in Preferences) of the display the mouse was on when you started it. The menu entry tells the wait. Preferences also has an option to put the mouse pointer in Fullscreen, Active Window, Delayed and Repeat Area screenshots; screenshots where you select an area or a window by hand never include it.
  • Scrolling capture: pick an area and ShotCraft scrolls it for you, grabs it again and again and stitches what the area showed into one tall image that opens in the editor. No ShotCraft window is on screen while it runs: press Esc to finish at any time and keep what was captured; it opens like any other capture. Scrolling for you needs the Accessibility permission, which macOS asks for the first time; without it a notification tells you to scroll by hand and press Esc, and the capture also ends by itself 3 seconds after the page stops moving. Fixed headers, footers and side panels are kept once, a side panel that scrolls a little and then sticks does not stop the capture, scrolling back up adds nothing, and the image stops at 20,000 px (Preferences changes this, and the speed). Start it from the menu bar icon or with its hotkey (not set by default); pressing the hotkey again acts like Esc. Scrolling Capture (Up) is for pages that grow upwards, like a chat: scroll to the bottom of the page first, select the area, and ShotCraft scrolls up and stitches upwards.
  • Active Window and Any Window captures have four looks (Preferences → General → Window Screenshot Background): Transparent (the default: the window with its shadow, rounded corners and see-through background), Trim shadow (cut tight without the shadow, corners stay rounded), Solid Color and Wallpaper (the window and its shadow laid on a color, or on your desktop picture, as an opaque rectangle; the padding is the shadow's own margin, so the window sits in the middle). If the wallpaper can't be read, Wallpaper falls back to the solid color. Area, Fullscreen and All Displays captures are never changed.
  • Instant text and QR recognition: select an area and the recognized text goes straight to the clipboard, with no editor.
  • Open an existing image from a file or from the clipboard. The file picker and the command line open PNG, JPEG, GIF, BMP, TIFF and WebP files; saving writes PNG or JPEG. Animated GIFs open as their first frame.
  • Lives in the menu bar only: no Dock icon, and starting the app (Finder, Launch at startup, open) shows no window. Windows appear when you capture, open a file, open Preferences, pin an image or check for updates. Every command, including Preferences, Check for Updates, Check for Updates Automatically, About and Quit, is in the menu bar icon menu. The app has no menu bar of its own and no Cmd+Tab entry; global hotkeys work at any time.

Scrolling capture limits:

  • Automatic scrolling moves the mouse pointer into the area and sends wheel events, so do not touch the mouse or keyboard until it stops. It stops at the end of the page, at the height limit, or on Esc, which always keeps the result (if nothing was captured yet it just ends). Some apps ignore synthetic wheel events (terminals, some sandboxed windows); then a notification says the page did not move and you scroll by hand. A page that has not moved at all after 10 seconds ends the capture: what the area showed opens like any other capture. The permission has to be granted again after an update if macOS forgets the app's signature.
  • By hand, scroll steadily: if the page jumps further than about 90% of the area between two grabs, or the content is blank or strongly repetitive, that step is dropped and the control says "Scroll a bit slower".
  • Content that animates inside the area (video, ads, a blinking cursor beside the text) can confuse the match; small changes are tolerated.
  • The image only grows in the direction of the capture (down, or up for Scrolling Capture (Up)): content on the other side of the point where you started is not added (a notification says so), and scrolling back over what is already captured changes nothing. A blank band at the very top of the page is treated like a fixed header, which is harmless. Esc is taken from other apps while a capture runs (it only ends the capture, it never starts one), and given back when it ends; if another ShotCraft hotkey already uses Esc, press the Scrolling Capture hotkey again, or choose Scrolling Capture in the menu bar icon menu, to finish. Warnings (scroll slower, the page did not move, no Accessibility permission) come as one notification per capture, at most.
  • If the screen can't be captured for a moment (screen locked, permission prompt), the capture ends with what was stitched so far.
  • Very tall images are shown in the editor as several textures, so they open at the width of the window; export and copy use the full-resolution image.

After a capture

Choose in Preferences what happens after a screenshot: open the editor, show a preview thumbnail, or do nothing. Independently of that, the screenshot can be copied to the clipboard and/or saved to your screenshots folder automatically.

The preview thumbnail sits in the bottom-right corner of the screen. Hover it for Edit, Copy, Save, Recognize Text/QR and Pin to Screen, or double-click it to edit. By default it closes by itself after 6 seconds unless the pointer is over it; Preferences can switch it to close only with its close button.

Editor

  • Annotation tools:
    • Arrow (shape, hand-drawn, line or double)
    • Text (Sans or Goofy font)
    • Rectangle and Oval (hand-drawn, transparent, translucent or opaque fill)
    • Line, Freehand drawing and Highlighter
    • Counter (numbered markers)
    • Magnifier
    • Spotlight (dims everything outside the selected areas)
    • Backdrop (gradient background with padding, shadow, inset, corner radii and aspect ratios)
  • Blur tool with four modes: Blur, Blur Text, Erase and Erase Text. The text modes detect text with the macOS Vision framework and cover only those areas.
  • Ruler: measure sizes in pixels or points (toggle with P). Hold 2 (or left/right arrows) for the horizontal span of similar pixels under the cursor, 1 (or up/down arrows) for the vertical span. The arrows measure only when nothing is selected (with a selection they move it) and the digits are ruler keys except with the Spotlight tool, where they set the darkness. You can also add rulers around a selected area.
  • Color helper: press Tab over a pixel to copy its color, Shift+Tab to copy the darkest color within 20 px, or C with a selection to copy its average color. Nine formats are available: HEX with or without #, RGB (0-255 or 0-1), UIColor (Swift), CSS rgba(), C# Color, Android and OKLCH.
  • Crop, Cut Out (removes a horizontal or vertical band and joins the rest), and Resize (25%, 33%, 50%, 1x, 2x, 4x, or an exact width and height; a result over 300 million pixels is refused). Resize cannot be undone.
  • Text recognition (OCR) on a selected area, using the macOS Vision framework. It also reads QR codes and other barcodes. The result is copied to the clipboard, optionally without line breaks.
  • Eight preset colors per tool plus a custom color picker, ten sizes, solid or dashed strokes.
  • Expandable canvas: annotations and pasted pictures can reach past the edges of the screenshot; the canvas grows to hold them when you copy, save or rasterize (the new area is transparent, white in JPEG). A crop cuts to its area instead.
  • Undo and redo, move selected objects with the arrow keys (Shift for 10 px steps), Reset Crop, and Rasterize (merge annotations into the image).
  • Add Capture (Draw menu) grabs another area and puts it beside the picture on a wider canvas.
  • Zoom with the menu, shortcuts or mouse wheel (the wheel direction can be reversed), and Space + drag to pan.

Export

  • Copy the result to the clipboard as an image.
  • Save to the screenshots folder (default: Desktop) as ShotCraft-<date>-<time>.png (the name is a template in Preferences), or use Save Image As to pick a name and place. The format is PNG or JPEG. In Preferences, "Auto (PNG/JPEG)" saves photo-like images as JPEG (quality 90) and flat screenshots as PNG.
  • Optionally downscale Retina screenshots to 1x when saving.
  • Pin the result to the screen.

Pins

A pinned image is a borderless window that stays above other windows. Drag it anywhere. Right-click for Edit, Copy, 50% / 100% / 200% size, Semi-transparent and Close; double-click to reopen it in the editor; press Esc to close it. You can have several pins at once. A pin never grows past 90% of the screen: a picture that is too wide is scaled down, and one that is too tall (a scrolling capture) scrolls with the mouse wheel inside the pin.

Preferences

  • General: what happens after a screenshot (editor, thumbnail or nothing; copy; save), thumbnail auto-close (click outside, or the close button), launch at startup, screenshots folder, file name, save format, Retina downscale, window screenshot background (Wallpaper, Transparent, Solid Color or Trim shadow), scrolling screenshot max height (1,000 to 400,000 px, default 20,000) and scrolling screenshot speed (five levels: the slower, the shorter the steps and the longer the wait for the page to settle).
  • File name: a template with %Y year, %y two-digit year, %m month, %d day, %H hour, %M minute, %S second, %t time (%H%M%S) and %%. The default is ShotCraft-%Y%m%d-%t. /, \ and : become -. A name that exists gets -2, -3... so a save never replaces a file. The example under the field shows the result.
  • Hotkeys: record or clear a shortcut for each of the nine actions listed under Keyboard shortcuts, in this order: Fullscreen, All displays, Area, Active window, Scrolling, Text/QR recognition, Repeat area, Any window, Show ShotCraft. ShotCraft flags a shortcut that macOS refuses because another app uses it. A short help explains how to free the system's own ⌘⇧3 and ⌘⇧4, with an Open System Settings button.
  • Advanced: primary OCR language (Automatic, or any language Vision reads), OCR line breaks, hide the menu bar icon (only while a Show ShotCraft hotkey is set and registered, since the icon is the way back into the app), keep the main window on top, zoom direction, scrolling capture (reverse the scroll direction for apps that turn the wheel around; scroll by hand), default zoom level, default tool, what Esc does when hiding the editor (copy and/or save), confirmation style (custom notification, system notification or none), Allow shotcraft:// links from other apps (see Automation), and Reset All Settings (asks first).
  • Each annotation tool keeps its last colour, size and options between launches, and the default tool is the one a new screenshot opens with.

Settings are stored in ~/Library/Application Support/ShotCraft/settings.json.

Keyboard shortcuts

Global hotkeys (editable in Preferences, Hotkeys):

Action Default
Fullscreen screenshot (display under the mouse) Cmd+Shift+1
All displays screenshot not set
Area screenshot Cmd+Shift+2
Any window screenshot not set
Active window screenshot Ctrl+Opt+Cmd+W
Repeat area screenshot not set
Instant Text/QR Recognition Ctrl+Opt+Cmd+O
Show ShotCraft not set
Scrolling screenshot not set

In the editor:

Keys Action
A T R O L Arrow, Text, Rectangle, Oval, Line
D H B S C M K Freehand, Highlighter, Blur, Spotlight, Counter, Magnifier, Backdrop
Cmd+O Recognize text or QR in a selected area
Cmd+C or Cmd+Shift+C, Cmd+S, Cmd+Shift+S, Cmd+P Copy the image, Save, Save As, Pin to Screen
Cmd+Shift+P Print
Cmd+Z, Cmd+Shift+Z Undo, Redo
Cmd++, Cmd+-, Cmd+0, Cmd+1 Zoom in, zoom out, 100%, fit
Cmd+W, Cmd+Opt+W Hide the editor, Close All (the editor and every pin)
Cmd+Shift+O, Cmd+Shift+V Open a file, open the image on the clipboard
Cmd+V Paste the clipboard image over the screenshot as an object you can move, resize (corner handles) and make see-through; its options bar has Save GIF for a two-frame before/after GIF
Cmd+,, Cmd+Q Preferences, Quit
Del Delete the selected object, or erase the selected area
Esc Deselect, then copy and hide (copy on Esc is on by default)
Space + drag Move around the picture
Z + click, Z + drag Zoom in on a spot, or on the dragged area
Cmd+2, Q, W With a selection: zoom to it, to its top left corner, to its bottom right corner
Cmd + click Select the flat area under the pointer (a button, a bar, a background)
Shift + drag Make the selection (or crop frame) square; shapes and lines keep their square / 45 degree constraint
Opt + drag While selecting, preview the selection snapped to the content inside it
A With a selection (Select tool, no object picked): snap it to the content inside
B With a selection: blur it
Enter With a selection: crop to it
Left Right Up Down Move the selection (or the selected object) by 1 pixel, 10 with Shift
Cmd + arrows Resize the selection by 1 pixel (right and bottom edge), 10 with Shift
[ ] Shrink or grow the selection by 1 pixel on every side, 10 with Shift
Cmd+Enter Freehand: next stroke variability (off, light, strong). Highlighter: flat or round ends
Opt+Up, Opt+Down Freehand: smoother, rougher strokes
1 to 9 Spotlight tool: how dark the surroundings are (10 to 90 percent)

Keyboard Shortcuts in the menu bar icon menu lists them in the app. The menu's shortcuts only act on the editor while the editor is the window in front: with Preferences or a pin in front, Cmd+W closes that window and Cmd+Z, Cmd+C and the others go to its own fields. While a hotkey is being recorded in Preferences, every other shortcut (the menu's, and ShotCraft's own global hotkeys) is off, so any combination can be recorded; Esc cancels and Del clears.

Automation (URL scheme)

Other apps can drive ShotCraft with shotcraft:// links: a Shortcuts "Open URLs" action, a Raycast or Alfred workflow, or a script.

open shotcraft://grab/area
open "shotcraft://load/file?path=/path/to/shot.png"

Links are off until you allow them. The first link asks once; the choice is Preferences, Advanced, "Allow shotcraft:// links from other apps". Until then nothing runs. Links never run commands and never read anything but the image file named in load/file.

Link Does
shotcraft://grab/area Area Capture
shotcraft://grab/fullscreen Fullscreen Screenshot
shotcraft://grab/window Any Window Screenshot
shotcraft://grab/window/active Active Window Screenshot
shotcraft://grab/repeat Repeat Area Capture
shotcraft://grab/scrolling Scrolling Capture
shotcraft://grab/scrolling/reverse Scrolling Capture (Up)
shotcraft://grab/delayed Delayed Screenshot (the wait set in Preferences)
shotcraft://grab/delayed=5 Delayed Screenshot after 5 seconds (1 to 60)
shotcraft://grab/alldisplays All Displays Screenshot
shotcraft://grab/append Add Capture to the open picture
shotcraft://ocr Text recognition of an area
shotcraft://load/clipboard Open the picture on the clipboard
shotcraft://load/file?path=/path/to/image.png Open an image file. The path is absolute, percent-encoded (%20 for a space), and ends in png, jpg, jpeg, gif, bmp, tif, tiff or webp.
shotcraft://show Show the editor window
shotcraft://settings Open Preferences

Anything else is ignored. After a capture, ShotCraft does what Preferences says (editor, thumbnail, copy, save); a link can't choose that.

Shortcuts: add "Open URLs" with the link. Raycast: a Script Command or Quicklink with the link as its URL. Alfred: a workflow with an "Open URL" action.

Privacy

ShotCraft makes no network connections of its own: the source contains no networking code and no HTTP client is among its dependencies. The one exception is the update check that Sparkle runs in release builds (see Updates), which the app asks about first and which make-app.sh builds do not include. There is no account, no upload and no telemetry. Captures are taken with the system screencapture tool, text recognition runs through the macOS Vision framework, and images stay in memory or in the folder you choose. Temporary capture files live in the system temporary folder and are deleted after loading. Besides your screenshots, ShotCraft writes only its settings file and, if you turn on Launch at startup, a login item at ~/Library/LaunchAgents/app.shotcraft.launcher.plist.

Requirements

  • macOS 12 or later (LSMinimumSystemVersion in packaging/Info.plist).
  • On Windows: Windows 10 version 1809 or later, or Windows 11, 64-bit. Nothing else has to be installed.
  • The Rust toolchain to build from source. ShotCraft itself needs no Rust on the computer that runs it.

Install

Download ShotCraft-0.2.4.zip from the Releases page, unzip it and move ShotCraft.app to /Applications. The app is universal (Apple Silicon and Intel). Finder then lists ShotCraft under Open With for PNG, JPEG, GIF, BMP, TIFF and WebP pictures; it does not become the default app for them.

ShotCraft is signed with its own certificate, not an Apple Developer ID, and it is not notarized, so macOS refuses to open it the first time (spctl reports "rejected"). To open it anyway:

  • On macOS 15 or later: try to open the app once, then go to System Settings > Privacy & Security, scroll to the message about ShotCraft and click Open Anyway.
  • On macOS 12 to 14: Control-click (right-click) the app, choose Open, then confirm.

You only need to do this the first time.

Install on Windows

Download ShotCraft-0.2.4-Setup.exe from the Releases page and run it.

  • The installer asks for no administrator rights: it installs ShotCraft for your Windows account, in %LOCALAPPDATA%\Programs\ShotCraft. To install it for every account, run it with /ALLUSERS: Windows then asks for administrator rights.
  • Nothing else has to be installed first. shotcraft.exe is a native Windows program: it needs no Rust, no .NET and no Visual C++ runtime.
  • ShotCraft reads text in pictures with Windows' own text recognition. If Windows has none for your language, the installer says so and offers to install it. Windows then asks for administrator rights and downloads it. The installer waits up to five minutes. When Windows needs longer, the installer finishes and Windows carries on by itself. If you answer no, everything else works, and you can add it later in Settings > Time & language > Language & region.
  • Explorer then lists ShotCraft under Open with for PNG, JPEG, GIF, BMP, TIFF and WebP pictures. It does not become the default app for them.
  • The installer is not signed with a code signing certificate, so Windows SmartScreen may stop it the first time with "Windows protected your PC". Click More info, then Run anyway.

To update, run the installer of the newer version: it asks before it closes ShotCraft, replaces it and keeps your settings. To remove ShotCraft, use Settings > Apps > Installed apps. The uninstaller asks whether to remove your settings too.

Windows and Linux

ShotCraft also runs on Windows 10 and 11 and on Linux (X11; Wayland with limits, below). It lives in the system tray instead of the menu bar: start ShotCraft from the Start menu (Windows) or run shotcraft (Linux) and its icon appears there, with every command in its menu. Starting it again while it runs changes nothing, as on macOS.

The editor. On Windows the editor has the same single bar as on macOS, and its window opens at the size of the picture. The button at the left end of the bar opens the menus (ShotCraft, Capture, File, Edit, Draw, Zoom, Help). On Linux the editor has a menu bar, the tools centred under it and a status bar at the bottom.

Keep the tray icon in sight (Windows 11). Windows puts every new tray icon in the hidden overflow, the ^ next to the clock, and lets no app pin itself. To see ShotCraft's icon, and the check mark it shows for a moment after a copy or a save, turn it on in Settings > Personalization > Taskbar > Other system tray icons > ShotCraft ("Taskbar corner overflow" on older versions of Windows 11), or drag the icon from the ^ panel onto the taskbar. On Windows 10 the setting is Settings > Personalization > Taskbar > Select which icons appear on the taskbar.

Linux tray. The icon is a StatusNotifierItem: KDE, Cinnamon, Xfce and most other desktops show it. GNOME shows it only with the AppIndicator and KStatusNotifierItem Support extension (installed by default on Ubuntu).

Shortcuts. ⌘ is Ctrl: Ctrl+Shift+1 takes a fullscreen screenshot, Ctrl+Shift+2 an area, Ctrl+Shift+3 the active window and Ctrl+Shift+4 reads text or a QR code. Change them in Preferences > Hotkeys. In the editor the mouse wheel scrolls the picture and Ctrl+wheel zooms.

What differs. Area and window captures freeze the screen and show ShotCraft's own crosshair. Text recognition uses Windows' built-in OCR on Windows, and built-in models that read Latin script on Linux. On Linux, drag-out and Print work too (Print opens the desktop's own print dialog; dragged pictures wait in a folder under Pictures so that sandboxed apps can read them). On Wayland the desktop takes the screenshots, but Area and Repeat Area still use ShotCraft's own crosshair; Window and Active Window use the desktop's picker. The mouse pointer in screenshots is the desktop's choice, scrolling capture is not available, pins can't stay above other windows, and the thumbnail is placed by the desktop. A minimized editor is brought back by a hotkey, a tray click, or the "ShotCraft is waiting" notification a link raises; closing it with ✕ avoids the wait. shotcraft:// links work once Preferences > Advanced > Automation allows them; ShotCraft then registers the link type for your user, and removes it when you switch that off.

Build from source

./scripts/make-app.sh            # builds target/ShotCraft.app
./scripts/make-app.sh --install  # also copies it to /Applications

The script runs cargo build --release, assembles the app bundle and signs it ad hoc (no developer certificate).

On Windows, cargo build --release builds target\release\shotcraft.exe, which runs as it is. To build the installer too, install Inno Setup 6 (winget install JRSoftware.InnoSetup) and run:

scripts\windows\make-installer.ps1   # builds target\dist\ShotCraft-<version>-Setup.exe

The app icon, window icon and menu bar icon are drawn in assets/logo/*.svg. After changing them, run node scripts/make-icons.mjs on a Mac (it needs Playwright and iconutil) to rewrite assets/AppIcon.icns, assets/window-icon.png, assets/menubar.png and assets/shotcraft.ico (the Windows exe icon). On Windows or Linux it writes all of them except assets/AppIcon.icns, and prints the iconutil command to finish that one on a Mac.

Permissions

macOS asks for the Screen Recording permission on the first capture. If a capture fails, ShotCraft shows a message pointing to System Settings > Privacy & Security > Screen Recording. The code requests no other permission.

Status

This is an early version. Feedback and issues are welcome on the issue tracker.

Updates

Releases are signed with a ShotCraft certificate rather than an Apple Developer ID, so macOS warns about the app the first time you open it (see Install for how to open it).

Updates come through Sparkle, which installs a new version only if its Ed25519 signature matches the key inside the app. On the second launch the app asks whether to check automatically. A check tells GitHub your IP address and the app version, and sends nothing else. Change your choice with Check for Updates Automatically in the menu bar icon menu, or use Check for Updates there at any time. Builds from make-app.sh do not include Sparkle.

The Windows and Linux versions have no updater and connect to nothing. On Windows, run the installer of the newer version.

Releasing

Set the version in Cargo.toml, then push a tag such as v0.2.4. The Release workflow tests on macOS and on Windows, signs the macOS app, builds the Windows installer and publishes both. The tag must match the version.

Credits

  • DM Sans, SIL Open Font License: assets/fonts/OFL.txt
  • Noto Sans Symbols, Symbols 2 and Math (a few key glyphs only), SIL Open Font License: assets/fonts/OFL-Noto.txt
  • Sparkle, MIT License, included in releases
  • Hugeicons free icons, MIT License: assets/icons/LICENSE-hugeicons.md
  • Ocrs models (text recognition on Linux), trained on the HierText dataset by Google Research, CC BY-SA 4.0: assets/ocr/LICENSE.txt, attribution and sources in assets/ocr/README.md; read by ocrs, MIT or Apache-2.0

License

ShotCraft is released under the MIT License. The fonts, icons and models listed in Credits keep their own licenses.

The Linux build includes CC BY-SA 4.0 models. The two Ocrs text-recognition files in assets/ocr/ are compiled into the Linux executable (the macOS and Windows builds don't contain them: they use Vision and Windows' own OCR). They are unchanged and stay under CC BY-SA 4.0, not MIT: anyone who passes them on, on their own or inside a build, must credit the authors, link the licence and share any changed copy of them under the same licence. The licence text travels with them in assets/ocr/LICENSE.txt (a Linux package should ship that file), and ShotCraft's own code stays MIT.

About

A simple screenshot tool : capture, annotate, blur, measure, read text and pin.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages