Index: imagerotate.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/imageapi/imagerotate.inc,v
retrieving revision 1.4
diff -d -u -r1.4 imagerotate.inc
--- imagerotate.inc	13 Feb 2009 00:06:02 -0000	1.4
+++ imagerotate.inc	16 Feb 2009 01:21:55 -0000
@@ -15,6 +15,10 @@
   if ($angle === 0) { 
     return $im;
   }
+  // imagerotate() in php's libgd rotates the image counterclockwise,
+  // this implementation rotates clockwise. The angle needs to be
+  // inverted to give the same behaviour between these implementations.
+  $angle = 360 - $angle;
 
   $width  = imagesx($im);
   $height = imagesy($im);
