From 0c2206305455fb7c17a32d1191a09f91c0684fea Mon Sep 17 00:00:00 2001 From: cristy Date: Wed, 25 Sep 2013 22:10:28 +0000 Subject: [PATCH] --- coders/jpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coders/jpeg.c b/coders/jpeg.c index ab530d251..2a018eac4 100644 --- a/coders/jpeg.c +++ b/coders/jpeg.c @@ -2173,6 +2173,10 @@ static MagickBooleanType WriteJPEGImage(const ImageInfo *image_info, jpeg_info.write_JFIF_header=MagickTrue; jpeg_info.X_density=(UINT16) floor(image->resolution.x+0.5); jpeg_info.Y_density=(UINT16) floor(image->resolution.y+0.5); + /* + Set image resolution units. + */ + jpeg_info.density_unit=(UINT8) 0; if (image->units == PixelsPerInchResolution) jpeg_info.density_unit=(UINT8) 1; if (image->units == PixelsPerCentimeterResolution) -- 2.40.0