Bug with image rotate function

Hi all,

I’ve got trouble with rotate image function.
It take a long time to execute and the result is a corrupt jpeg file (the original image was also a jpeg).
All other image function works perfectly.

Have you experienced troubles like that ?