summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-20 19:26:07 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-04-20 20:16:40 +0900
commitd0d8e0a2a7244814f783f16c6c8b342fe6d16e79 (patch)
tree2ca94c609c7d8e798e65d056a1a3318111f1fff6 /vcl
parentf517052783b232e31969e944bce565905fea8cf4 (diff)
tdf#65695 write density 96 DPI to JPEG files at compression
Change-Id: I14f5e9abe63954141f1711115f884db68282d94c
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/filter/jpeg/jpegc.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/filter/jpeg/jpegc.cxx b/vcl/source/filter/jpeg/jpegc.cxx
index 2d171d839876..9762e5a2fb10 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 );