- Usage:
hue-rotate 180 some-image-file.jpg some-output-file.png
# c++
someuser-MacBook-Pro:huerotatewebkit someuser$ time bin/huerotate 180 /Users/someuser/Pictures/out.png test3.png
INFO: FreeImage version: 3.17.0
LOADING: /Users/someuser/Pictures/out.png
DIMENSIONS: 2605x2624
SUCCESS: Image successfully processed to test3.png
real 0m1.753s
user 0m1.698s
sys 0m0.037s
# rust
someuser-MacBook-Pro:hue-rotate someuser$ time target/release/hue-rotate 180 /Users/someuser/Pictures/out.png test3.png
saved to: "test3.png"
PT0.411342066S seconds for whatever you did.
real 0m0.426s
user 0m0.384s
sys 0m0.035s
# that's 4 times faster, as I have 4 CPU cores!
irb(main):001:0> 1753 / 426
=> 4
irb(main):002:0> 1753 / 426.0
=> 4.115023474178404