#image #image-processing

image2

A simple image processing library

12 releases (6 breaking)

✓ Uses Rust 2018 edition

0.8.0 Jan 6, 2019
0.7.1 Jan 4, 2019
0.6.0 Jan 4, 2019
0.5.2 Dec 30, 2018
0.1.0 Aug 22, 2018

#43 in Images

Download history 2/week @ 2018-10-11 34/week @ 2018-10-18 6/week @ 2018-10-25 9/week @ 2018-11-01 30/week @ 2018-11-08 31/week @ 2018-11-15 6/week @ 2018-11-22 34/week @ 2018-11-29 15/week @ 2018-12-06 10/week @ 2018-12-13 1/week @ 2018-12-20 50/week @ 2018-12-27 33/week @ 2019-01-03

100 downloads per month

ISC license

413KB
2.5K SLoC

image2

A Rust library focused on generic image processing for a wide range of datatypes. stb_image is used as the default encoder/decoder and supports the following formats:

  • JPEG [RW]
  • PNG [RW]
  • TGA [RW]
  • BMP [RW]
  • PSD [R]
  • GIF [R]
  • HDR [RW]

Additional formats are provided by:

Optional crate features

  • raw
  • v4l
    • Enables support for webcam capture on Linux
  • ser
    • Automatically derive serde traits for images and many other datatyes
  • parallel
    • Uses rayon to iterate over pixels in parallel (enabled by default)

Installation

Add the following to your Cargo.toml:

[dependencies]
image2 = "0.7"

Dependencies

~2.5MB
~47K SLoC

  • build build.rs
  • build cc 1.0