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 );