[KimDaBa] Really rotate the pictures ?

Jean-Michel FAYARD jmfayard at gmail.com
Tue Mar 22 13:18:21 GMT 2005


On Tue, 22 Mar 2005 07:11:57 -0500, Robert L Krawitz <rlk at alum.mit.edu> wrote:
>   Date: Tue, 22 Mar 2005 09:30:23 +0100
>   From: Jean-Michel FAYARD <jmfayard at gmail.com>
> 
>   For kimdaba 2.1, what about making an exception to Kimdaba's
>   philosophy that it doesn't modify the original pictures, and really
>   rotating the pictures.  It's a bit ugly at the moment for
>   interoperability with other software or when you burn a CD.
> 
> My take: software that doesn't handle EXIF information is broken, and
> needs to be fixed.  It isn't Kimdaba's problem that other software
> can't handle this.  The rotation information is valuable, and IMHO
> shouldn't be destroyed.

KimDaBa does not modify the EXIF when I rotate a picture from it.
Instead, it put an attribute 
   <image ... angle="90"  ...>
   </image>
in the index.xml file. Another software has no chance to know about
that information.

http://webcvs.kde.org/kdeextragear-2/kimdaba/viewer.cpp?rev=1.87&view=auto
void Viewer::rotate90()
{
    currentInfo()->rotate( 90 );
    load();
}

http://webcvs.kde.org/kdeextragear-2/kimdaba/imageinfo.cpp?view=markup
void ImageInfo::rotate( int degrees )
{
    _angle += degrees + 360;
    _angle = _angle % 360;
}



More information about the Kphotoalbum mailing list