diff options
author | scuri <scuri> | 2009-08-19 18:39:31 +0000 |
---|---|---|
committer | scuri <scuri> | 2009-08-19 18:39:31 +0000 |
commit | 43522c5f2a12dc0cf3cda733e4fb5c04cd62a154 (patch) | |
tree | 898c6d10776a5e8e50dc93c7c51d334e5bc79cb3 /src/im_format_jpeg.cpp | |
parent | 40b9c00bf632734a5871c78d58c7661f1b0988a0 (diff) |
*** empty log message ***
Diffstat (limited to 'src/im_format_jpeg.cpp')
-rw-r--r-- | src/im_format_jpeg.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/im_format_jpeg.cpp b/src/im_format_jpeg.cpp index 487db0b..5d451da 100644 --- a/src/im_format_jpeg.cpp +++ b/src/im_format_jpeg.cpp @@ -3,7 +3,7 @@ * * See Copyright Notice in im_lib.h * See libJPEG Copyright Notice in jpeglib.h - * $Id: im_format_jpeg.cpp,v 1.2 2008/12/03 15:45:34 scuri Exp $ + * $Id: im_format_jpeg.cpp,v 1.3 2009/08/19 18:39:43 scuri Exp $ */ #include "im_format.h" @@ -264,9 +264,9 @@ void imFileFormatJPEG::iReadExifAttrib(unsigned char* data, int data_length, imA int res_unit = (int)exif_get_short (entry->data, byte_order); if (res_unit == 2) - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPI"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPI"); else if (res_unit == 3) - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPC"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPC"); continue; } @@ -604,9 +604,9 @@ int imFileFormatJPEG::ReadImageInfo(int index) yres = (float)this->dinfo.Y_density; if (this->dinfo.density_unit == 1) - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPI"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPI"); else - attrib_table->Set("ResolutionUnit", IM_BYTE, 4, "DPC"); + attrib_table->Set("ResolutionUnit", IM_BYTE, -1, "DPC"); attrib_table->Set("XResolution", IM_FLOAT, 1, (void*)&xres); attrib_table->Set("YResolution", IM_FLOAT, 1, (void*)&yres); |