vcl/source/filter/jpeg/jpegc.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit d0d8e0a2a7244814f783f16c6c8b342fe6d16e79 Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> Date: Mon Apr 20 19:26:07 2015 +0900 tdf#65695 write density 96 DPI to JPEG files at compression Change-Id: I14f5e9abe63954141f1711115f884db68282d94c diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx index 2d171d8..9762e5a 100644 --- a/vcl/source/filter/jpeg/jpegc.cxx +++ b/vcl/source/filter/jpeg/jpegc.cxx @@ -263,6 +263,10 @@ bool WriteJPEG( JPEGWriter* pJPEGWriter, void* pOutputStream, jpeg_set_defaults( &cinfo ); jpeg_set_quality( &cinfo, (int) nQualityPercent, FALSE ); + cinfo.density_unit = 1; + cinfo.X_density = 96; + cinfo.Y_density = 96; + if ( ( nWidth > 128 ) || ( nHeight > 128 ) ) jpeg_simple_progression( &cinfo );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits