Cropping images from portrait to landscape

I found the error.
The images where displayed correctly on the page, but it seems that for the cropping the orientation was read in the wrong way, when I set autoOrient to false the cropping works as expected.
Now I rotate the images first in a external program.