全部软件
PixelLoupeProductivity
版本
v1.5.0
发布日期
2026-12-02
平台
macOS
安装包大小
macOS 0.0 MB
发布者
twlatl
Productivity · twlatl

PixelLoupe

PixelLoupe A raw photo editor and catalog for the Mac, modeled on Lightroom Classic. Free and open source.

版本 v1.5.0
macOS

README

PixelLoupe

A raw photo editor and catalog for the Mac, modeled on Lightroom Classic. Free and open source.

Found a bug or want a feature? Open an issue. Want to help with the code? Read CONTRIBUTING.md and SKILLS.md, the project's rules.

Requirements

  • macOS 27 or later
  • Xcode 27.2 or later, with the Metal Toolchain (Photo Merge's Core Image kernels need it; Xcode offers to install it, or run xcodebuild -downloadComponent MetalToolchain)

Building

Open PixelLoupe.xcodeproj and run the PixelLoupe scheme, or from the command line:

xcodebuild -project PixelLoupe.xcodeproj -scheme PixelLoupe -destination 'platform=macOS' test

The JPEG XL encoder Smart Previews and Export use, libjxl, is checked in already built, as Packages/JXLEncoder/libjxl.xcframework, so building needs nothing else. Scripts/build-libjxl.sh rebuilds it from the pinned libjxl release (it needs CMake: brew install cmake). The build is reproducible: with the same Xcode it gives the same bytes, so the checked-in copy can be verified with git diff --stat after running it.

Updates

PixelLoupe updates itself with Sparkle. PixelLoupe ▸ Check for Updates… checks now; at the second launch Sparkle asks whether to check automatically (daily) and whether to download and install updates by itself, and Settings ▸ General changes those answers later. An update window shows what's new in the version on offer (its GitHub release notes) before anything is installed. Development builds don't check (Debug builds would always find the release newer), and neither do the tests.

The app looks for appcast.xml on the latest published release (https://github.com/twlatl/PixelLoupe/releases/latest/download/appcast.xml, SUFeedURL). Only stable releases are offered: drafts and prereleases never are. Sparkle installs an update only if it's signed with PixelLoupe's EdDSA key (whose public half is SUPublicEDKey in Config/Info.plist) and with the same Developer ID as the app.

Releasing

Pushing a version tag builds a release on GitHub (.github/workflows/release.yml): a Release build signed with Developer ID, in a disk image (PixelLoupe-1.2.0.dmg, with an Applications shortcut) that is notarized and stapled, so it opens without warnings, and signed for Sparkle. It's attached, with its SHA-256 checksum, its .appcast.json (version, size and update signature) and notes generated from the merged pull requests, to a draft release.

git fetch origin && git tag v1.2.0 origin/main && git push origin v1.2.0

Check the draft on GitHub and edit its notes: they're what the update window shows. Publishing it offers the update to everyone: the Publish Appcast workflow (.github/workflows/appcast.yml) writes appcast.xml from the release's notes and the .appcast.json (Scripts/appcast.sh) and attaches it to the release, usually within a minute. Editing a published release's notes writes it again.

The tag sets the app's version (1.2.0). A tag with a suffix, such as v1.2.0-beta.1, makes a prerelease: the disk image is named after the whole tag, and the app says 1.2.0. The build number is the time of the build (UTC, to the minute, such as 202610181432), so each build's is higher than every earlier one's.

One-time setup: Scripts/setup-release-secrets.sh walks through exporting the Developer ID Application certificate, making an App Store Connect API key (Developer role) for notarizing, and making Sparkle's EdDSA update key (in your login keychain, account net.pixegen.PixelLoupe; it adds the public half to Config/Info.plist, to commit). It stores them as the repository's Actions secrets (DEVELOPER_ID_P12, DEVELOPER_ID_P12_PASSWORD, NOTARY_KEY_P8, NOTARY_KEY_ID, NOTARY_ISSUER_ID, SPARKLE_ED_PRIVATE_KEY). Run it again to replace any of them, for example when the certificate is renewed; steps whose secrets are already set can be skipped. Only the release workflow reads them. It runs only for tags, and it uses no third-party actions. Back up the Sparkle key (generate_keys --account net.pixegen.PixelLoupe -x <file>, from Sparkle's bin folder): if it's lost, installed copies can't be updated.

On a Mac: Scripts/release.sh 1.2.0 does the same build into build/release, signing with the Developer ID certificate in your keychain. The GitHub secrets don't reach it: it notarizes with a notarytool keychain profile named PixelLoupe (the setup script offers to save one, or run xcrun notarytool store-credentials PixelLoupe --key AuthKey_<KEY ID>.p8 --key-id <KEY ID> --issuer <ISSUER ID>). NOTARY_PROFILE names a different profile, and NOTARY_KEY, NOTARY_KEY_ID and NOTARY_ISSUER give it an API key instead. It signs the update with the Sparkle key in your keychain (or SPARKLE_KEY_FILE), and checks both before building, stopping if either is missing or the Sparkle key isn't SUPublicEDKey's. NOTARIZE=0 builds a signed disk image without notarizing it (or signing it for Sparkle), and SIGNING_IDENTITY=- an ad hoc signed one, to check the packaging without a certificate.

Release builds leave out Sparkle's XPC services (only sandboxed apps use them) and sign its helpers with the app's Developer ID, as notarization requires. The disk image is APFS with LZFSE compression, as Sparkle recommends.

Architecture

  • UI: AppKit, built in code (no storyboards). The photo grid is an NSCollectionView with layer-backed cells composited by Core Animation/Metal. Develop renders through Core Image on an MTKView.
  • RAW: Apple's RAW pipeline via CIRAWFilter. Grid thumbnails are generated once at import with ImageIO and re-rendered when a photo is edited.
  • Develop: non-destructive edits stored per photo as JSON (Photo.adjustmentsData). Exposure, white balance, noise reduction and sharpening run inside CIRAWFilter for RAW files (Core Image filters for other formats). Tone, levels, curves, color grading, selective color and black & white are folded into a single 3D color lookup table, which also carries Whites, Vibrance and Saturation. Texture, Clarity and Dehaze (the Adjust panel's Presence section) are Core Image filters on the GPU. The preview renders at display resolution on an MTKView.
  • Catalogs: each catalog is a .pixelloupe package containing its own Core Data (SQLite) store, Catalog.plist settings, a Settings.plist of Catalog Settings (⌥⌘,) and a Thumbnails cache. Catalogs either copy imported photos into a storage folder organized as YYYY/MM-DD, or reference photos where they already are. Catalogs made before the app was renamed (.lightloupe from LightLoupe, .rawloupe from RawLoupe) still open; they aren't renamed.
  • Earlier names: PixelLoupe was LightLoupe, and RawLoupe before that. On first launch it copies the old preferences (net.tedlee.LightLoupe, then net.tedlee.RawLoupe) without overwriting any already set, and copies ~/Library/Application Support/Pixegen/LightLoupe (presets and profiles) to Pixegen/PixelLoupe.
  • Concurrency: Swift 6 with main-actor default isolation. Import work (metadata, copying, thumbnails) runs in @concurrent functions and inserts in batches on a background context.
Folder Contents
PixelLoupe/App Entry point, app delegate, main menu
PixelLoupe/Catalog Catalog package format and Core Data stack
PixelLoupe/Model Core Data model and managed object classes
PixelLoupe/Import File discovery, metadata reading, import pipeline
PixelLoupe/LightroomImport Lightroom Classic catalog reader, Lua parser and the import flow
PixelLoupe/Thumbnails Thumbnail generation and caching
PixelLoupe/Library Library module: sidebar, filter bar, grid, bottom toolbar
PixelLoupe/Develop Develop module, adjustment model and render pipeline
PixelLoupe/Develop/Panel Adjust panel and its controls
PixelLoupe/Merge Photo Merge: the HDR, panorama and focus stack merges, their sheets, and the Linear DNG writer
PixelLoupe/ContactSheet Contact Sheet: its window, page layout, preview and PDF writer
PixelLoupe/WebGallery Web Gallery: its window, HTML pages and stylesheet, preview and folder writer
PixelLoupe/Windows Welcome, About, new-catalog and catalog windows

Keyboard shortcuts

Key Action
G / D Library / Develop (also ⌘1 / ⌘2 and Lightroom's ⌥⌘1 / ⌥⌘2)
⌘3 Map (also Lightroom's ⌥⌘3; Lightroom has no single key for it)
0–5 Set rating; Photo ▸ Set Rating and the grid's right-click menu show the keys (a pill over the photos confirms each rating, flag and label applied: "Rating ★★★", "Flag Rejected", "Label ●")
[ / ] Decrease / increase rating (each photo one star down or up); with a brush mask selected in Masking, a smaller / larger brush
⇧[ / ⇧] With a brush mask selected in Masking: a harder / softer brush (Feather)
Two-finger swipe up / down (or scroll wheel) While the brush is active in Masking (a brush, Subject or Background mask): a larger / smaller brush; with ⇧ held, softer / harder
Space (held) In Masking (whatever mask is selected), or in Remove with the photo zoomed: the pointer becomes a hand, and dragging moves the zoomed photo around instead of painting, sampling or moving a handle (a tap without a drag still toggles the zoom). Zoomed in Masking, dragging off the gradients' handles moves the photo too
M / ⇧M / K Develop Masking: add a linear gradient / radial gradient / brush mask (O shows the selected mask in red)
⇧-click (or ⇧-drag) Develop Masking, on a Color Range mask: add the sampled color to the mask's colors (up to five) instead of replacing them
⌘⇧-drag Develop Masking: zoom continuously around where the drag begins, right to zoom in and left to zoom out (Lightroom's scrubby zoom); the pointer is a magnifier with arrows while ⌘⇧ is held, and the Navigator shows the zoom as a percentage
Q Develop Remove: paint to remove, heal or clone (with Detect Objects, Return removes the area found and Esc cancels; Delete removes the selected spot)
⇧Q Develop Spot Removal: click heal and clone spots, and red eyes
⌥-drag In Remove, while a detected area waits for Remove: paint with the opposite of the Selected card's Add / Subtract (the brush shows a minus while it takes away)
P / U / X Flagged / Unflagged / Rejected
6 / 7 / 8 / 9 Color label red / yellow / green / blue; press the same key again to clear it (purple has no key, as in Lightroom: Photo ▸ Set Color Label)
Shift-click Select every photo between the last one clicked and this one (grid and filmstrip); ⌘⇧-click adds the range
E, Return or double-click Enlarge the photo to fill the grid area (Return again or Esc to go back)
Z or Space Toggle zoom: between the Navigator's fit choice (FIT or FILL) and its zoom (1:1 or a ratio); from the grid it enlarges the photo zoomed in; in Compare it zooms the active photo (both while locked)
F View the photo full screen (Esc returns to the grid)
← / → Previous / next photo while enlarged, full screen or in Develop (filmstrip); next candidate in Compare; next photo in Survey
= / - Larger / smaller thumbnails
⌘U Auto Light (Develop)
⌘G / ⇧⌘G Group the selected photos into a stack / unstack (Photo ▸ Stacking)
S / ⇧S Collapse or expand the stack of the selected photo / move the selected photo to the top of its stack
⌘' Create Virtual Copy (Photo menu; a copy keeps the master's file but has its own edits, rating, flag, label and keywords)
⌃H Photo Merge ▸ HDR… (the selected bracketed RAW photos)
⌃⇧H Photo Merge ▸ HDR with Previous