--- id: fabio version: "2026.6.0" license: Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fabio Upstream-Contact: Jérôme Kieffer Source:… (full text in the JSON record) license_treatment: permissive maintenance: active --- # fabio — FabIO is an I/O library for images produced by 2D X-ray detectors and written in Python License: permissive · Maintenance: active · Downloads: 96.1K/mo ## What it is and what it does FabIO is a Python I/O library for reading and writing detector images from 2D X-ray diffraction experiments. It abstracts over 30 file formats from a dozen detector manufacturers into a unified interface: each image becomes a numpy array (data) plus an ordered dictionary of header metadata. The library handles formats ranging from simple TIFF and EDF to vendor-specific compressed formats like CBF and Pilatus, and supports HDF5-based formats like Eiger through h5py integration. Typically used in synchrotron beamline software, crystallography pipelines, and scientific data processing workflows where detector images need to be read, inspected, and written without format-specific boilerplate. It includes convenience methods for statistics (min, max, mean, stddev), rebinning, and transparent decompression of gzip/bzip2 files. The package depends on numpy for array operations, h5py for HDF5 support, pillow for TIFF/image handling, lxml for XML formats, and filelock for concurrent access. Use it for: - Load CBF or EDF detector frames and access pixel data and experimental parameters via a uniform interface. - Batch convert detector images between formats without writing format-specific code. - Read HDF5-based Eiger detector stacks and extract 2D slices as numpy arrays for analysis. - Build a data pipeline that accepts images from multiple detector types and processes them uniformly. - Inspect detector image headers and statistics quickly without loading the full array into memory. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. FabIO reads and writes 2D X-ray detector images in 30 different formats from vendors like Mar, Dectris, ADSC, and Hamamatsu, exposing image data as numpy arrays and headers as Python dictionaries. Yes, if you work with 2D X-ray detector images from synchrotron or laboratory diffraction systems. The library is actively maintained, permissively licensed (MIT primary), and eliminates format-specific parsing code. Medium install friction from compiled dependencies is acceptable for the breadth of format support. Not relevant for general image processing; consider only if your workflow involves detector formats like CBF, EDF, or Eiger. ## Install pip install fabio uv add fabio poetry add fabio ## Installing fabio Before you install: Medium install friction due to 6 runtime dependencies (numpy, h5py, hdf5plugin, lxml, pillow, filelock) and compiled C/Cython components. Actively maintained with recent release 56 days ago and ongoing repository activity. License in practice: Primarily MIT-licensed with permissive treatment. Some components use LGPL-3.0+ and GPL-2.0+; verify compatibility if redistributing or modifying for proprietary use. Quickstart: import fabio obj = fabio.open("mydata0000.edf") print(obj.data.shape) print(obj.header["Omega"]) Requires h5py and hdf5plugin for HDF5/Eiger format support; gzip and bzip2 modules needed for transparent compressed file handling. Verify before relying: - Whether all 30 file formats are equally well-tested or if some are rarely used - Performance characteristics for large detector images or batch processing - Exact Python version support floor (requires >=3.11 but earliest tested version unclear) ## Package facts - License: Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: fabio Upstream-Contact: Jérôme Kieffer Source:… (full text in the JSON record) (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 96.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags x-ray detector image io, cbf edf tiff image reader, 2d detector data formats, synchrotron image processing, crystallography image loader, x-ray-diffraction, detector-formats, crystallography [View on SkillFed](https://skillfed.io/packages/fabio) · [View on PyPI](https://pypi.org/project/fabio/)