Skip to content
happydemaoPublic

About

Cross-platform brush converter: ProCraft .brush, Photoshop .abr, Krita .kpp/.bundle, GIMP .gbr, Infinite Painter .prbr, PaintTool SAI2 .saitdat. CLI + Android app.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Brush Converter

Convert brush files between ProCraft, Photoshop, Krita, GIMP, Infinite Painter, PaintTool SAI2 and PhotoCraft — from the command line or from a small Android app.
One Rust binary, no Python, no GPU: read a brush or a whole set, write it in any of the other formats, and see exactly which settings each format keeps.

Releases License: MIT OR Apache-2.0 Android 8 and up

Formats

Format Read Write Notes
ProCraft .brush, .brushset, .brushlibrary yes yes the only format that keeps every field, including author and materials
Photoshop .abr yes yes writes v2 sampled tips; sizes, opacity and grain are not carried by that version
Krita .kpp, .bundle yes yes size, softness, ratio, angle, scatter, mirroring, colour jitter, a masking brush and the stroke preview
GIMP .gbr yes yes one grey tip, name and spacing
Infinite Painter .prbr yes yes the writer is experimental; see tools/brushconv/README.md
PaintTool SAI2 .saitdat yes yes SAI2 keeps textures beside the tool, so a converted tool gets a round tip
PhotoCraft .pcbrushes yes yes a group file names a computed tip; PhotoCraft keeps sampled tips in a folder beside it
CSP .sut, .sutg yes no SQLite container, no writer
JSON — yes every setting the converter knows, for scripting

Command line

cargo build --release -p brushconv            # one binary, no GPU

brushconv Inking.brushset -o out/ --to abr    # a whole set into one .abr
brushconv 2.bundle --list                     # what is inside, with sizes
brushconv set/ -o out/ --to kpp               # one .kpp per brush

Every output can be read back; --list shows the format, the brush count, sizes, spacing and opacity. See tools/brushconv/README.md for all options, the per-format fidelity matrix and the comparison with Brush Bridge.

Android app

android-converter is a standalone, conversion-only app: pick brush files through the system file picker, pick an output folder, convert. It shows a brush editor first, marking which fields the file brought in and which the chosen output format will keep, and draws a graph for every curve parameter (pressure to size, to opacity, to flow, to roundness). Grab brushconv-*-android-arm64.apk from Releases.

This repository

This repository is a derivative of ProCraft (MIT OR Apache-2.0), keeping the painting app and its history. On top of it live tools/brushconv, its tools/brushconv-ffi bindings, the android-converter app, and the readers/writers for the formats above. See NOTICE.


The rest of this README belongs to ProCraft, the painting app this converter is built on.

ProCraft's app icon: a paintbrush in a warm-to-cool blend on a black tile

ProCraft

An open-source painting app for Android tablets, Windows and Linux, with its own Rust engine and GPU renderer: a Kotlin/Jetpack Compose UI on Android, the same interface in egui on the desktop.
Pressure-sensitive brushes, layers with blend modes, adjustments, selection and transform, animation and 3D painting, written from scratch.

Get it on GitHub Get it on Obtainium Join us on Discord

Discord: join the community Rust engine GPU renderer: wgpu Kotlin and Jetpack Compose Minimum: Android 8 (API 26) Target: Android 16 (API 36) License: MIT OR Apache-2.0 Desktop: Windows and Linux Status: beta

From Releases: Android tablets take the arm64.apk (the legacy-armeabi-v7a.apk is only for older 32-bit tablets), or Obtainium, for updates; Windows the .msi installer or the portable .zip; Linux the .AppImage, the .deb or the .tar.gz (videos and PDFs there use the system's ffmpeg and poppler-utils).

Painting · Layers & colour · Adjustments & transform · Actions · Planned features · Building


Dusk painted in ProCraft from a blank canvas, at a person's pace: the Soft Airbrush picked in the brush library and its size set; colours picked on the Classic square; the sky filled indigo by dragging the colour onto the canvas and airbrushed in bands of purple, magenta, orange and gold; a new layer for a glow and one for the sun, a circle that snaps round and is filled; two ranges of hills outlined and filled; pines and birds inked; stars airbrushed and made to glow with Bloom; the Layers panel opened on its seven layers
Dusk, painted from a blank canvas on a Lenovo Legion Tab: the brush library, the colour picker, the layers, a sun snapped round and filled, hills filled the same way, pines, stars with Bloom. About 1:20; the full video (MP4, 2:21) shows every menu at close to real speed. Every stroke is a pen stroke with pressure, eased in and out, played by the demo script.


The finished Dusk on the canvas: a sky from deep indigo through purple, magenta and orange to gold, a pale sun with a soft glow, birds, two ranges of purple hills with dark pines, and stars; the top bar with Gallery and the tools, and the sidebar with the size and opacity sliders, undo and redo
The canvas: the tools along the top, size and opacity in the sidebar, the whole screen for the painting.


Painting

The Brush library over Dusk: the sets Sketching, Inking, Drawing, Painting (chosen), Watercolour, Calligraphy, Airbrushing, Spray Paint, Charcoals, Textures and Abstract, each with its icon, and the Painting set's brushes with a preview stroke each
The brush library: eleven sets of our own brushes, each previewed with a stroke.
The Brush Studio on Round Brush: the tabs from Stroke path to About this brush, the Shape tab with its shape source and input style, and the Drawing Pad with a pressure scribble
The Brush Studio: stroke path, stabilization, taper, shape, grain, rendering, wet mix, colour dynamics and more, tried out on the drawing pad.

Layers and colour

The Layers panel over Dusk: seven layers, each with its thumbnail (stars, pines, the near and far hills, the sun, its glow and the sky), their blend mode letters and visibility boxes, and the background colour
Layers with blend modes, opacity, alpha lock, clipping masks, masks and groups. Layers past what the GPU holds are kept compressed, so artworks with hundreds of layers open and paint smoothly.
The Colors panel on its Disc tab: a hue ring around a saturation and brightness disc, the current and previous colours, and the Classic, Harmony, Value and Palettes tabs
Colour: disc, classic, harmony, value (with hex) and palettes.

Adjustments and transform

Hue, Saturation, Brightness on Dusk's sky: the hue moved to 40 percent turns the sky blue at the top and pink at the horizon, with the Hue, Saturation and Brightness sliders below
Hue, saturation, brightness on the sky layer, live. Also colour balance, curves, gradient map, blurs, noise, sharpen, bloom, glitch, halftone, chromatic aberration, liquify and clone, on the layer or painted on.
Transform in Warp on the sun layer: a mesh with corner handles over the sun, and the toolbar with Freeform, Uniform, Distort and Warp, then Advanced Mesh, Flip Horizontal, Flip Vertical, Rotate 45, Fit to Canvas, Bilinear and Reset
Transform: freeform, uniform, distort and warp, with snapping. Selection: automatic, freehand, rectangle and ellipse, with feather.

Actions

The Actions panel on its Canvas tab over Dusk: Crop and Resize, the Animation Assist, Page Assist, Drawing Guide and Reference switches, Edit Drawing Guide, Flip horizontal, Flip vertical and Canvas information, under the Add, Canvas, Share, Video, Prefs and Help tabs
Actions: add files, photos and text; the canvas, its guides and assists; share as PNG, JPEG, PSD, PDF, TIFF, GIF or MP4; a time-lapse of every artwork; preferences and gesture controls.


Planned features

ProCraft is in beta, on Android tablets and on the desktop (Windows and Linux).

Area Status
Canvas: the top bar, the sidebar (size, opacity, modify, undo, redo), full screen, gestures (pinch, rotate, quick fit, two- and three-finger taps, scrub to clear) ✅
Brush engine: shape and grain sources, stroke path, stabilization, taper, rendering and glazes, wet mix, colour dynamics, pen pressure and tilt; the library and the Brush Studio ✅
Layers: blend modes, opacity, alpha lock, clipping masks, masks, groups, merge, the reference layer; large artworks kept compressed off the GPU ✅
Colour: disc, classic, harmony, value and palettes; history; eyedropper; filling by dragging the colour onto the canvas ✅
Adjustments, each with its toolbar, on the layer or painted on ✅
Selection (automatic, freehand, shapes, feather) and transform (freeform, uniform, distort, warp, snapping) ✅
Shapes that snap clean, drawing guides and drawing assist (2D, isometric, perspective, symmetry), text ✅
Animation and page assists, the reference window ✅
Gallery: stacks, new-canvas presets, import and share (PNG, JPEG, PSD, PDF, TIFF, GIF, MP4), time-lapse 🚧 nearly done
3D painting: OBJ and USDZ models, texture sets, painting on the mesh, lights and environments 🚧
Desktop: Windows and Linux, the same interface with a mouse, a pen tablet and keyboard shortcuts; an installer, an AppImage and a .deb 🚧 beta
Plugins: .procraft-plugin files you import in Prefs › Plugins, each off until you turn it on and gone without a trace when you turn it off. Filters (a few lines of WGSL, under Adjustments) and sandboxed WebAssembly that changes how the app behaves, such as Interface, Touch offset and ColorDrop tools. How to write one: docs/plugins.md ✅
More for plugins: buttons that change the artwork (asking permission first), panels of their own, the colour picker drawn their way, kinds of artwork and of layer of their own, such as Vector layers ✅
Brush engines in plugins: brush files another app's engine draws, drawn by a plugin as that app draws them, with a brush studio of its own, such as Krita brushes (Krita's pixel brush) 🚧
Phones: their own app, ProCraft Pocket (this one is for tablets) ⬜

✅ works today · 🚧 in progress · ⬜ not started · 🚫 not planned


Building Instructions

One Gradle command builds the whole app: it compiles the Rust engine with cargo-ndk and generates the Kotlin bindings.

  • Clone this repository
  • Make sure you have at least 6 GB of free disk space
  • enter android and run ./gradlew assembleRelease -Pprocraft.abis=arm64-v8a, or open that folder in Android Studio and press Run.
  • the desktop app: cargo run --release -p procraft-desktop from the repository's root; its installer and packages with packaging/windows/package.ps1 (WiX v5) and packaging/linux/package.sh (nfpm, appimagetool).

Build time dependencies:

required tools
    rustup, with the aarch64-linux-android and x86_64-linux-android targets
    cargo install cargo-ndk --version "^4" --locked
    Android SDK (API 37) and NDK 29.0.14206865
    JDK 17 or newer

cargo test --workspace runs the engine's and the renderer's tests on the desktop.

Path What
crates/engine document, brushes, stroke geometry, canvas view (no GPU)
crates/gpu wgpu renderer: layers, strokes, compositing, display
crates/core what both apps share above the renderer: the canvas session, every touch and gesture, the tools' state (adjustments, transform, selection, crop, Recolor) and which of them a button ends, the gallery, presets, gradients, time-lapse, the brush library's files, the layer menu, exports and their file names, and keyboard shortcuts; with the Android app's UniFFI bindings
android the Android app (Gradle)
desktop the desktop app (egui) for Windows and Linux
packaging the desktop app's Windows installer and Linux packages, as the release workflow builds them

Builds are only tested on Windows 11.


License

MIT OR Apache-2.0, at your option.

  • Third-party material: the Inter font, Lucide icons and the light panoramas the app bundles, and the libraries it's built with, are listed in NOTICE.
  • Every asset, with its author, source and licence, is in ATTRIBUTION.md.
  • Icons drawn using vector outlines (tools/icons/draw_icons.py, to the style guide).
  • The demo painting, Dusk, is our own, made in the app.

Misc info for myself

Try to use semantic commit messages. Use feat: / fix: / chore: / docs: / etc.

About

Cross-platform brush converter: ProCraft .brush, Photoshop .abr, Krita .kpp/.bundle, GIMP .gbr, Infinite Painter .prbr, PaintTool SAI2 .saitdat. CLI + Android app.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages