<div>Hi all,</div><div><br></div><div> Attached is a patch which allows quality &amp; progressive mode to be set in JpegWriter.</div><div> Another writeImgFile method is added to SplashBitmap which allows a pre-created ImgWriter to be passed (e.g. a JpegWriter with custom quality/progressive mode settings), deletion of the ImgWriter is moved into the writeImgFile method which creates it.</div>
<div> This is backwards compatible with current applications using JpegWriter or SplashBitmap::writeImgFile.</div><div><br></div><div> I&#39;ve been using something similar in an application for about a month, but avoided using SplashBitmap::writeImgFile because I needed to do resampling and post-processing before hand, with this patch it&#39;ll allow me to create (for example) ResamplingImgWriter to resample it before passing it onto another ImgWriter, thus avoiding the duplication that I have at the moment (and generally allowing much more flexibility or new image-output formats without modifying poppler).</div>
<br clear="all">Many Regards,<br> - Harry Roberts<br> - Midnight Labs.<br>