[Libreoffice-commits] core.git: vcl/source
Tomaž Vajngerl
tomaz.vajngerl at collabora.co.uk
Mon Apr 20 04:20:23 PDT 2015
vcl/source/filter/jpeg/jpegc.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit d0d8e0a2a7244814f783f16c6c8b342fe6d16e79
Author: Tomaž Vajngerl <tomaz.vajngerl at 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 );
More information about the Libreoffice-commits
mailing list