There are different methods of compression and coding combined in JPEG. Most likely your original image used a different compression/coding than standard openCV parametrization for cvSaveImage.
Try this:
IplImage* src = cvLoadImage("test.jpg", 0);
cvSaveImage("reTest.jpg", src);
IplImage* reSrc = cvLoadImage("reTest.jpg",0);
cvSaveImage("reTest2.jpg", reSrc);
if reTest.jpg
and reTest2.jpg
have the same size, openCV does not increase the filesize but just uses a different compression level or sth.
You would have to find out the compression level and coding of your original file and save it with these same parameters, maybe with a different library than openCV.