On some pictures that taken by specific devices, like this :
preview got:
cause:
The original image doesn't have the correct orientation, but most image viewing software will automatically correct it, our imagemagick will too, the problem is that when we calculate the target height and width, it is based on the original image before rotation.
Fix
Calculate target size, should be based on rotated size
Description and expectations
On some pictures that taken by specific devices, like this :
preview got:
cause: The original image doesn't have the correct orientation, but most image viewing software will automatically correct it, our imagemagick will too, the problem is that when we calculate the target height and width, it is based on the original image before rotation.
Fix Calculate target size, should be based on rotated size
How to reproduce
as above
Version information
Diagnostic
Prerequisites
I'm going to fix it by a pr.