#effect #photon #image #offset #png #input #filter

photon-effects

Library extending photon to easily use effects functions

2 releases (1 stable)

1.0.0 Nov 17, 2021
0.1.0 Nov 16, 2021

#6 in #photon

MIT license

32KB
259 lines

photon-effects

photon-effects is an extension of photon-rs to easily apply filter effects on image or image directory.

Some examples

extern crate photon_effects;
 
let input = "/tmp/logo.png";
let output_dir = "/tmp/";

photon_effects::multiple_offsets(
  input, 
  output_dir, 
  "logo_multiple_offsets.png",
  30,
  0,
  2
).expect("Couldn't create multiple_offsets image");

Result:

crates.io

docs.rs

Dependencies

~24MB
~412K SLoC