24 releases ()

new 1.0.0-beta.4 May 3, 2021
1.0.0-beta.3 Dec 13, 2020
1.0.0-beta.0 Nov 13, 2020
0.11.3 Nov 18, 2019
0.4.0 Nov 11, 2018

#1 in #image-processing

Download history 148/week @ 2021-01-16 282/week @ 2021-01-23 206/week @ 2021-01-30 89/week @ 2021-02-06 152/week @ 2021-02-13 39/week @ 2021-02-20 109/week @ 2021-02-27 105/week @ 2021-03-06 122/week @ 2021-03-13 127/week @ 2021-03-20 404/week @ 2021-03-27 136/week @ 2021-04-03 145/week @ 2021-04-10 174/week @ 2021-04-17 168/week @ 2021-04-24 384/week @ 2021-05-01

691 downloads per month
Used in 4 crates (2 directly)

ISC license

4.5MB
4.5K SLoC

image2 - image processing library

A Rust crate focused on generic image processing for a wide range of image formats and data types.

  • Supported image data types: u8, i8, u16, i16, u32, i32, u64, i64, f16, f32, f64
  • Supported color types: gray, rgb, rgba, hsv, cmyk, xyz
  • Read and write images of any supported type/color
    • Colors other than gray, rgb and rgba will be converted to rgb before writing
  • Easy to add new colors
  • Generic image processing across data types using Pixel
  • Composable operations using Filter (with async support)

OpenImageIO is used to read/write images and supports:

  • TIFF
  • JPEG/JFIF
  • OpenEXR
  • PNG
  • HDR/RGBE
  • ICO
  • BMP
  • Targa
  • JPEG-2000
  • RMan Zfile
  • FITS
  • DDS
  • Softimage PIC
  • PNM
  • DPX
  • Cineon
  • IFF
  • Field3D
  • Ptex
  • Photoshop PSD
  • Wavefront RLA
  • SGI
  • WebP
  • GIF
  • A variety of RAW digital camera formats

ImageMagick can also be used in place of OpenImageIO.

This is not a pure Rust crate, if that's important to you then image is probably a better fit.

Features

  • oiio
    • Enables I/O using OpenImageIO
  • parallel:
    • Enables parallel image iterators
  • window:
    • Enables ability to draw images to a graphical window
  • halide:

External dependencies

  • libOpenImageIO (optional)
    • oiio feature
    • Version >= 2.0
    • Debian-based distros: apt install libopenimageio-dev

Dependencies