silvia-odwyer / photon

⚡ Rust/WebAssembly image processing library
https://silvia-odwyer.github.io/photon
Apache License 2.0
2.72k stars 154 forks source link

Noise added on image rotation. #170

Open deepushajia opened 7 months ago

deepushajia commented 7 months ago

sma Actual Image

output Rotateed Image

Notice the difference in pixelation along the edges.

deepushajia commented 7 months ago

use photon_rs::native::open_image; use photon_rs::transform::rotate;

let img = open_image("img.jpg").expect("File should open"); let rotated_img = rotate(&img, 30);

This was the sample code used.