A compact desktop image cropper written in Rust. It uses a native desktop window—without Node.js, npm, Electron, Chromium, or ImageMagick at runtime—and performs crop operations directly on the decoded pixels in memory.
- Native Linux and Windows desktop application.
- Native file picker and drag-and-drop opening.
- Rectangular crop selection: draw a new region, drag it to move it, or adjust any of its four corner handles.
- Direct in-process crop algorithm—no external
convertcommand. - Numbered output names:
imagecrop1.ext,imagecrop2.ext, and so on. - JPEG, PNG, GIF, WebP, BMP, TIFF, ICO, and AVIF support through Rust crates.
- HEIC/HEIF support through the
libheifcodec runtime. Linux and Windows installer scripts bundle the runtime libraries alongside the compiled application. HEIC and HEIF crops save as JPEG for broad compatibility.
Requirements: a Rust toolchain, a C/C++ compiler, pkg-config, the libheif development package, and the normal graphics development packages required by the window system.
cargo runBuild an optimized binary:
cargo build --releaseRequirements: the Rust MSVC toolchain, Visual Studio Build Tools with C++ support, CMake, and vcpkg.
Install the HEIC codec dependency once in vcpkg:
vcpkg install libheif:x64-windows
$env:VCPKG_ROOT = 'C:\path\to\vcpkg'
$env:VCPKGRS_DYNAMIC = '1'
cargo run --releaseBuild an optimized executable:
cargo build --releaseThe install scripts build the release binary if needed, then install it for the current user. End users run the compiled binary and bundled runtime files—they do not need Node.js or npm.
./scripts/install-linux.shThis installs the executable under ~/.local/share/imgcrop, adds an imgcrop launcher in ~/.local/bin, and creates a desktop entry in ~/.local/share/applications.
To remove it:
./scripts/uninstall-linux.shFrom PowerShell:
.\scripts\install-windows.ps1The script copies target\release\imgcrop.exe to %LOCALAPPDATA%\Programs\Image Cropper, copies vcpkg runtime DLLs when VCPKG_ROOT is configured, and creates an Image Cropper Start-menu shortcut.
To remove it:
.\scripts\uninstall-windows.ps1cargo testThis project is licensed under the MIT License.