[Kde-imaging] kipi-plugin picture rotation

Caulier Gilles caulier.gilles at kdemail.net
Wed Jan 3 18:53:05 CET 2007


Le mercredi 3 janvier 2007 17:58, Shad P a écrit :
> Hi, I'm trying to write a kipi plugins to create kml files, and I got
> a problem when I want to rotate pictures: I tried code similae as the
> one found in calendar/monthwidget.cpp
> ------------
>         KIPI::ImageInfo info=mInterface->info(imageURL);
>         if ( info.angle() != 0 ) {
>                 QWMatrix matrix;
>                 matrix.rotate( info.angle() );
>                 image = image.xForm( matrix );
>         }
> ------------
> but the info.angle()  always return 0
> and when I tried the calendar, I saw that it wasn't rotating picture.
>
> Did I miss something about the angle() function? (I saw that the
> KIPI::ImageInfoShared::angle() always return 0)
> or did a change occured and I have to use another method to retrieve
> the exif rotation information?

no, it's the right way, but this is depand of the virtual method angle() witch 
is re-implemented on kipi host interface.

From digiKam, this method use the Exif rotation tag. From KPhotoAlbum, a flag 
from database is used.

About Gwenview and Showimg, i have no idea...

Gilles Caulier


More information about the Kde-imaging mailing list