napari-crop
🚨🚨🚨 Call for maintainers 🚨🚨🚨
If you are interested in further developing it, please get in touch or create a fork.
Crop regions in napari manually
Crop in any dimension
Cut a volume using a plane
Note:
- this functionality currently only works with 3D data
- to drag the plane, hold the 'SHIFT' key from your keyboard
Draw shapes of fixed size at given coordinates for later cropping
Note:
- the shapes are drawn with the specified width and height, but, since the crop widget is very permissive as it tends to include all pixels the shape "touches", the cropped result tends to be 1pixel larger in both dimensions. Therefore, to have a 64x64 array after cropping, it is best to set the shape sizes here to 63x63 for example.
Usage
Create a new shapes layer to annotate the region you would like to crop:
Use the rectangle tool to annotate a region. Start the crop tool from the Plugins > napari-crop > Crop region or, if available, Tools > Utilities > Crop region menu or Layer > Transform > Crop region(s).
Click the Run button to crop the region.
You can also use the Select shapes tool to move the rectangle to a new place and crop another region by clicking on Run.
Hint: You can also use the napari-tabu plugin to send all your cropped images to a new napari window.
This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.
Installation
You can install napari-crop via pip:
pip install napari-crop
Contributing
Contributions are very welcome.
License
Distributed under the terms of the BSD-3 license, "napari-crop" is free and open source software
Issues
If you encounter any problems, please create a thread on image.sc along with a detailed description and tag @haesleinhuepf.
Metadata
Release files for napari-crop 0.1.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| napari_crop-0.1.12.tar.gz | 24.5 MB | With provenance | Details for napari_crop-0.1.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| napari_crop-0.1.12-py3-none-any.whl | Python 3 | none | any | Details for napari_crop-0.1.12-py3-none-any.whl |
Total release size: 32.2 MB
Release files / napari_crop-0.1.12.tar.gz
| Download URL | napari_crop-0.1.12.tar.gz |
|---|---|
| Size | 24.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52a2304407b3264e3ed9ecd5a2ed344ba820472455d3fdef67b443deb6612f2e
|
|
BLAKE2b-256 checksum How to use checksums |
4af397c50445a741400bb015e94f8b6df251b2cf13a31bf8b014a80e2026da3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logRelease files / napari_crop-0.1.12-py3-none-any.whl
| Download URL | napari_crop-0.1.12-py3-none-any.whl |
|---|---|
| Size | 7.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23574096829f448f9b10f942ed535da9a4a3329b205ec74e9d688893621d709c
|
|
BLAKE2b-256 checksum How to use checksums |
6c2b55de2ebf31babaef125f281e09f035cea5e3ee293b598db568f6d638fe7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logSecurity for napari-crop 0.1.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for napari_crop-0.1.12.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.