First time here? Check out the FAQ!
answered 2013-05-02 02:01:04 -0600
As seen on the imwrite documentation you should assign a compression rate as parameter. In C++ this are basic integer values between 0-9, where 3 is standard compression rate.