| commit | d0d8e0a2a7244814f783f16c6c8b342fe6d16e79 | [log] |
|---|---|---|
| author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | Mon Apr 20 19:26:07 2015 +0900 |
| committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | Mon Apr 20 20:16:40 2015 +0900 |
| tree | 2ca94c609c7d8e798e65d056a1a3318111f1fff6 | |
| parent | f517052783b232e31969e944bce565905fea8cf4 [diff] |
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 );