kuroshiro is a macOS-only desktop app for developing and managing monochrome photos, together with a mobile app for iOS and Android for viewing and exporting them. I have not published it. I use it for myself.

I built it to put only the features I normally use for monochrome photography into one app. The main features are an after-the-fact flash for scenes shot without a flash, automatic detection and removal of dust on the sensor, and organizing, editing, encrypted backup and mobile sync for photos. The after-the-fact flash estimates the photo’s depth on the Mac and calculates the light so that it gets weaker toward the far background. For organizing and editing, it uses ACP integration with agy, which is available with my Google AI Pro / Ultra subscription. Semantic search runs on an embedding model on the Mac, and the backend for organizing and editing can also be switched to a local inference server. Encrypted backup and mobile sync use the large Google Drive storage that comes with the same subscription.

The desktop version is a non-destructive development environment that does not rewrite the original RAW files. The mobile version lets you find synced photos offline while you are out and pass them to Google Photos or social media.

Video link: https://www.youtube.com/watch?v=rm-q71tuMgw

Main darkroom features

Handling monochrome-sensor DNGs and color DNGs

Monochrome-sensor cameras and color cameras give different kinds of data to read, so kuroshiro processes them separately.

Camera typeDifferences in processing and screen
Monochrome-sensor DNGThere is no color filter, so color interpolation (demosaicing) is skipped and the recorded brightness goes straight to the GPU. The Color tab is not shown
Color (CFA) DNGFirst restored to color. In the Color tab, it is converted to black and white with an RGB mix and a 5-point curve while you compare it with the original color photo, then passed to the same development pipeline
A photo from a monochrome-sensor camera open in the darkroom. The Color tab is not shown
A photo taken with a monochrome-sensor camera (Leica M10 Monochrom). It has no color information, so there is no Color tab, and the photo is finished directly from a single set of brightness data.

For a color DNG, you can adjust the RGB mix ratio while the original color photo stays visible at the top right. If you give the setting a name, you can use it on other color DNGs too.

A color DNG open in the Color tab, converted to black and white while compared with the original color image
Black-and-white conversion of a color DNG. You set the RGB balance and the conversion curve while comparing with the original color photo at the top right.

Darkroom-style tonal work and comparing finishes

I added 3 views modeled on darkroom work: a zone view that checks the brightness distribution in 11 steps, a side-by-side split comparison (Split) against the unadjusted image, and test strips (Strips) that line up stepped exposures so you can pick one in 1 click.

Split comparison in the darkroom. Left is before adjustment, right has raised exposure
The split comparison. The unadjusted image and the current result sit on either side of a dividing line, so you can check the detail left in the shadows.
Test strip view that splits a photo into 5 bands with stepped exposure
A set of 5 test strips. You can apply the exposure you pick after comparing them directly.

The zone view divides the photo’s brightness into 11 steps from 0 to X and colors each step differently. When you select a step in Tonal zones (階調ゾーン) at the top right, it shows the share of the photo in that step, and you can change the exposure of that step alone within −1 to +1 EV. The changes are joined between steps with a smooth curve so that the brightness order does not flip.

Zone view coloring the photo by zone, with a small window for adjusting the exposure of zone 0
The zone view. In this photo, zone 0 covers 73.8%, and only zone 0 is raised by +0.44 EV.

The Tone (階調) tab adjusts exposure, contrast, a roll-off that holds back blown highlights, the balance between soft and hard contrast, toning such as sepia, and burning in on all 4 edges.

Original DNG and TIFF files are treated as read-only and are not rewritten. Adjustments, masks, dust removal and up to 32 generations of snapshots are saved automatically to a recipe file (.mono.json) next to the original. When you delete a photo, it goes to the macOS Trash instead of being erased right away.

You can switch between saved snapshots from a dropdown. You can also pick one as the baseline for the Split comparison.

Generation 1 (left) and Generation 2 (right) of the same photo side by side
Comparing 2 finishes with snapshots. You can switch between a warm-toned version and a low-key version.

After-the-fact flash with depth detection

When a scene came out dark because no flash was used, you can add light later with local adjustments. Local adjustments include a brush, a radial mask and a linear gradient. On top of these, I added a virtual flash that estimates depth and lights the scene.

If you brighten with a radial mask alone, the dark background behind it also lifts and turns white. Real flash light gets weaker the farther it travels from the light source. The virtual flash calculates this falloff with distance, using the depth estimated from the photo.

A photo with a local adjustment and the virtual flash applied, and the depth chart in the right panel
Adjusting the after-the-fact flash with depth detection. The subject in front is the reference plane, which limits light spilling onto the background behind it.

Depth estimation runs on the Mac. The app bundles a depth estimation model (Depth Anything V2 Small, converted for Core ML by Apple) and runs it with Core ML on macOS 14 or later. The input is the whole photo, developed without adjustments and scaled down to 768px on the long side. Photos are not sent outside for estimation.

The model outputs relative values for how near each point in the photo is. kuroshiro reduces them to a 9×9 grid, converts them to values from 0 (farthest) to 255 (nearest), and saves them in the recipe file. Selecting a flash mask starts the estimation automatically, and Re-estimate depth (深度を再推定) runs it again.

The Depth chart (深度表) in the right panel draws this grid as a 3D mesh. It is drawn from a viewpoint where the top edge of the photo tilts away, and nearer points rise higher. Opening 9×9 depth values (9×9 深度値) shows the same grid as a table of numbers.

Darkroom view with the virtual flash on a bicycle crossing a crosswalk, and the right panel showing the flash depth, the depth chart and the subject plane diagram
The virtual flash on a bicycle crossing a crosswalk. The right panel shows the background depth multiplier, the depth chart and the subject plane diagram.

The light calculation uses the depth at the center of the mask as its reference. The screen calls this reference the Subject plane (被写体面). A point behind the reference is treated as farther from the light source by the depth difference multiplied by the Background depth multiplier (背景の奥行き倍率), and its light is reduced according to the square of the distance. Points in front of the reference are not moved farther away. The multiplier goes from 0 to 10 (default 3), and a higher value makes the light on far areas weaker. At 0, depth is not used.

The Subject plane diagram shows in 3D how the light spreads from the light source to the subject plane. Depth (奥行き) is the distance from the light source to the subject plane, and Angle (角度) is the angle the light spreads. The strength of the light reaching the subject plane is shown in colors from 0 EV to 5+ EV. Turning on Show lighting on photo (写真に照明を表示) overlays the same colors on the photo. Diffuser (ディフューザー) softens the edge of the light.

To use it, start by dragging from the center of the area you want to light to set the mask size. Adjust the width and height with the edge handles, and move the light source to change the direction of the light. You can move the light source by dragging it on the Subject plane diagram or with the arrow keys. The flash strength is set by the mask exposure (+1.00 EV on screen).

Automatic detection and removal of sensor dust

When dust gets on the sensor from changing lenses or carrying the camera around, black spots appear in the same position in photos from the same day. Along with manual spot removal (which blends the spot into its surroundings), I added a Find recurring dust (繰り返すゴミを探す) feature to kuroshiro.

This feature analyzes 3 or more scenes together from photos with the same shooting date and the same camera (model, body serial number and sensor size). It picks up dark spots in shared positions as dust candidates automatically. The candidates are applied to the photo provisionally. After you remove only the candidates you do not want, you can apply the rest to the day’s group of photos at once.

agy integration for Google AI Pro / Ultra, and local inference

As the number of photos grows, tagging and searching by hand takes effort. Trial and error in development also takes time. kuroshiro supports the Antigravity ACP CLI (agy). After you log in with Google OAuth, it uses agy within the quota of my Google AI Pro / Ultra subscription to organize, manage and edit photos. It can also switch to a Gemini API key or a local inference server.

  1. Organizing and managing photos: running Auto-generate context and labels (コンテキストとラベルを自動生成) in the library creates descriptions and tags in Japanese and English. Besides keyword search, you can find photos with offline semantic search that uses an embedding model running locally.
  2. Editing through chat and reference images: in the darkroom recipe chat, agy calls kuroshiro’s own MCP tools and 4 bundled skills (black-and-white development, dodging ideas, color filter look, and reference image matching). If you describe the look you want in words or attach a reference photo, it builds the tone adjustments. It also creates region masks for people, the main subject and the sky using Apple Vision and the depth model.

In the current implementation, what goes to agy or an external API is a scaled-down grayscale thumbnail and the instruction text. File names, storage paths, capture date and time, EXIF and shooting location are not sent.

The embedding model for semantic search is Google’s EmbeddingGemma 2 (ONNX format, q4). Once you download the model (about 316 MB) from Local search (ローカル検索) in the settings, it runs on the Mac’s CPU. It creates a 768-dimensional vector for each photo, stores it on the Mac, and sorts photos by how close they are to the vector of the search terms. When no photo matches the labels or descriptions, it searches with this semantic search. The same vectors are also used for Find similar photos (似た写真を探す).

You choose the backend for organizing and editing in Agent settings (エージェント設定) in the settings. There are 3 choices: Antigravity ACP CLI, Gemini API, and a local inference server. For a local inference server, you specify the URL of an OpenAI-compatible server such as LM Studio and a model that accepts image input. Labels, context and settings changes through chat then run on that server, and what it sends is a scaled-down image and the instruction text.

Settings screen. Local search is downloaded, and Agent settings lists Antigravity ACP CLI, Gemini API and local inference server
The settings screen. The Local search model is downloaded. The agent uses Antigravity ACP CLI, with the Gemini API and local inference server settings below it.

Encrypted backup, mobile sync, and Google Photos integration

Storage and sync use the large Google Drive storage that comes with my Google AI Pro / Ultra subscription. I do not run a server of my own. Google Drive is divided into 2 areas.

Area on Google DriveData sentHow it works
Encrypted backupOriginal RAW files, edit recipes, catalogStored encrypted in a restic-compatible format. If a run stops partway, verified data is reused. Deleted photos can be restored from past points in time
Mobile syncDeveloped WebP previews, small thumbnails, search catalogOnly changes are sent. Heavy originals, recipes and shooting locations are not synced

On Drive, the 2 areas sit under the KuroShiro folder. The backup area, backup_restic, holds config, data, index, keys, locks and snapshots, the same as a restic repository.

The KuroShiro/backup_restic folder on Google Drive, with snapshots, locks, keys, index and data folders and a config file
The backup area on Google Drive (backup_restic). It has the same layout as a restic repository.

When encryption is on for mobile sync, files on Drive are encrypted with ChaCha20-Poly1305. library_sync/blobs holds files named with sealed- and the SHA-256 of the encrypted data.

The KuroShiro/library_sync/blobs folder on Google Drive, with files whose names start with sealed-
The mobile sync area on Google Drive (library_sync/blobs). Encrypted previews, thumbnails and the search catalog are stored under names starting with sealed-.

The library key is not stored on Google Drive. The PC and the smartphone pass it by scanning 2 QR codes that are valid for 5 minutes. This uses keys kept in the device key store (Android Keystore or iOS Keychain). Pairing works even when the PC and the smartphone are on different networks.

If a device is lost, unregistering that device automatically re-encrypts the data with a new key.

After the first sync, the mobile version lets you browse a gallery by shooting month and run fuzzy search on Japanese and English tags and descriptions while offline.

Cropping a photo in Export Studio on mobile (left) and choosing a white border and size to export (right)
Export Studio on mobile. You can crop, add a white border and export while you are out.

In Export Studio, you can crop with up to 12x zoom, rotate, add a 3% white border, choose whether to keep EXIF, and export as JPEG or WebP. Save to Photos saves the image to the device’s standard photo folder (Pictures/KuroShiro on Android). From there, you can use it in the Android gallery and in Google Photos auto backup and album sharing.

Rendering speed

To keep sliders smooth even with large RAW files, I placed a macOS Metal drawing surface directly under the transparent control UI. This skips reading the image back from the GPU to the CPU on every adjustment.

When you open a photo, a 1600px editing proxy appears first while the full-resolution RAW loads in the background. When loading finishes, the view switches to the original RAW and keeps the position and zoom level. Export always computes from the full-resolution original.

What I plan to build next

Now that kuroshiro supports local inference, I am thinking of building a way to make monochrome video with MiniMax H3 next.