Package: imagemagick
Version: 7:6.3.7.9.dfsg1-2

EXIF data seems to be broken after using convert command in images
taken by Canon EOS 40D camera.

First I've noticed something is wrong when resized images were not
'autorotated' in Nautilus nor in gqview.

Moreover, EXIF details in both gqview and eog show following text in
Resolution tag (instead of correct value!):

   Project-Id-Version: libexif
   Report-Msgid-Bugs-To:
   ... (5 other lines skipped) ...
   Content-Type: text/plain; charset=UTF-8
   Content-Transfer-Encoding: 8bit

which looks like buffer overflow in libexif due to invalid EXIF data.

Please note this seems to be issue only with specific camera type
(Canon 40D), as EXIF data in images taken by Canon PowerShot S70 are
preserved correctly.


Steps to reproduce this bug:

$ convert -resize 1920x -quality 95 img_0481.jpg img_0481-1920.jpg

$ exif img_0481.jpg > exif.original
$ exif img_0481-1920.jpg > exif.converted
$ diff -u exif.original exif.converted 
--- exif.original       2008-02-29 23:39:56.592170154 +0100
+++ exif.converted      2008-02-29 23:40:04.401978718 +0100
@@ -1,19 +1,19 @@
-EXIF tags in 'img_0481.jpg' ('Intel' byte order):
+EXIF tags in 'img_0481-1920.jpg' ('Intel' byte order):
 --------------------+----------------------------------------------------------
 Tag                 |Value                                                     
 --------------------+----------------------------------------------------------
 Manufacturer        |Canon                                                     
 Model               |Canon EOS 40D                                             
-Orientation         |left - bottom                                             
+Orientation         |                                                          
 x-Resolution        |72.00                                                     
 y-Resolution        |72.00                                                     
-Resolution Unit     |Inch                                                      
+Resolution Unit     |Internal error (unknown value 1).                         
 Date and Time       |2008:02:28 07:03:21                                       
 YCbCr Positioning   |co-sited                                                  
 Compression         |JPEG compression                                          
 x-Resolution        |72.00                                                     
 y-Resolution        |72.00                                                     
-Resolution Unit     |Inch                                                      
+Resolution Unit     |Internal error (unknown value 1).                         
 Exposure Time       |1/125 sec.                                                
 FNumber             |f/7.1                                                     
 ExposureProgram     |Normal program                       

Software versions:

$ dpkg -l | grep imagemagick
ii  imagemagick                          7:6.3.7.9.dfsg1-2                   
image manipulation programs

$ convert --version
Version: ImageMagick 6.3.7 02/13/08 Q16 http://www.imagemagick.org




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to