Automated Rotation

Eole

Joined: 2003-10-01
Posts: 2
Posted: Wed, 2003-10-01 10:54

Hi all !

Gallery is becoming very intersting. Please continue

I used to make my own script for generating statics galleries from my photographs.

My camera [1] store in an EXIF header, the orientation of the picture from a set of mercury balls. With that information, my script can rotate automaticaly all pictures. This is very practical.

Could Gallery does this feature ? That would be very pleasant.

Here is some informations :
The EXIF field is named "Orientation"
the value can be 90 or 270.
Personnaly I use ImageMagick for the rotation, but we don't care in this case.

Thanks a lot

--
Eole

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-10-01 11:42

This is available already. It's a configurable option.

 
gambitdis

Joined: 2002-12-23
Posts: 47
Posted: Wed, 2003-10-01 19:13

Yea. Just start uploading into one of the latest releases (1.4-pl1 will work) and it will start rotating them based on the EXIF header. I believe it even does it without losing any quality now.

 
Eole

Joined: 2003-10-01
Posts: 2
Posted: Thu, 2003-10-02 11:49

that is good news !

But, do you delete the field Orientation after the rotation ?
Because, there's some viewers that also use this EXIF field for auto rotation.

It would be anoying to see the picture rotated again, when you download it on your computer.

Cheers.

--
Eole

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-11-14 10:53

No. Right now we use Jhead, which doesn't seem to support editing EXIF fields. In Gallery 2, we're investigating some new tools which will allow us to reset orientation values. So yeah, it's a little quirky.

-Beckett (beck@beckettmw.com )

 
etiennesky

Joined: 2005-09-28
Posts: 40
Posted: Thu, 2005-09-29 21:36

the current version of jhead (with the -autorot option) rotates the image and set the orientation flag to 1 (no rotation) so this should work great in gallery2!

See http://www.sentex.net/~mwandel/jhead/usage.html for more details

I'll check what is used at the moment and write a module or modify the existing stuff.