Package: imagemagick
Version: 7:6.3.7.9.dfsg1-3~lenny1
Severity: important

I use the following script to reduce the resolution (and disk space) of 
images:
#!/bin/bash
f=$1
convert -auto-orient -quality 88 -resize 1600x1200 $f $f-new
touch -r $f $f-new
ls -l $f $f-new
mv $f-new $f

What happens is "jhead" reports:
grundler <514>jhead IMG_0001.JPG 
File name    : IMG_0001.JPG
File size    : 1584690 bytes
File date    : 2009:01:25 00:29:27
Camera make  : Canon
Camera model : Canon PowerShot SD850 IS
Date/Time    : 2009:01:22 08:55:15
Resolution   : 3264 x 2448
Orientation  : rotate 90
Flash used   : No
.....

After running the above convert line, I get:
grundler <516>jhead IMG_0001.JPG-NEW 
File name    : IMG_0001.JPG-NEW
File size    : 278022 bytes
File date    : 2009:01:25 00:30:53
Camera make  : Canon
Camera model : Canon PowerShot SD850 IS
Date/Time    : 2009:01:22 08:55:15
Resolution   : 1600 x 1200
Flash used   : No
....

Note orientation is NOT reported. More clear is "-v" output:
grundler <521>jhead -v IMG_0001.JPG-NEW 
Exif header 9726 bytes long
Exif section in Intel order
(dir has 9 entries)
    Make = "Canon"
    Model = "Canon PowerShot SD850 IS"
    Orientation = 0
....

The original image reports:
grundler <523>jhead -v IMG_0001.JPG
Exif header 9726 bytes long
Exif section in Intel order
(dir has 9 entries)
    Make = "Canon"
    Model = "Canon PowerShot SD850 IS"
    Orientation = 6
    XResolution = 180/1
    YResolution = 180/1
    ResolutionUnit = 2
    DateTime = "2009:01:22 08:55:15"
....

And the image is displayed sideways (gqview won't autorotate it).

I tried without "-auto-rotate" and got the same result.



-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages imagemagick depends on:
ii  libbz2-1.0      1.0.5-1                  high-quality block-sorting file co
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libfontconfig1  2.6.0-3                  generic font configuration library
ii  libfreetype6    2.3.7-2                  FreeType 2 font engine, shared lib
ii  libice6         2:1.0.4-1                X11 Inter-Client Exchange library
ii  libjpeg62       6b-14                    The Independent JPEG Group's JPEG 
ii  liblcms1        1.17.dfsg-1              Color management library
ii  libmagick10     7:6.3.7.9.dfsg1-3~lenny1 image manipulation library
ii  libsm6          2:1.0.3-2                X11 Session Management library
ii  libtiff4        3.8.2-11                 Tag Image File Format (TIFF) libra
ii  libx11-6        2:1.1.5-2                X11 client-side library
ii  libxext6        2:1.0.4-1                X11 miscellaneous extension librar
ii  libxt6          1:1.0.5-3                X11 toolkit intrinsics library
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

imagemagick recommends no packages.

imagemagick suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to