Invalid size selection in image editor
|Reported by:||mkaganer||Owned by:|
I'm using 2.9.1 with arras theme. The problem is that this theme uses very strange ratio for the thumb images - 640x250.
This confuses the image editor which selects a narrow and wide thumbnail for editing, cropping everything from the top and the bottom of each image.
The problem is that image_get_intermediate_size() selects a thumbnail which is bigger by width *or* by height than 400x400, so it selects 640x250.
I've fixed it in my code (see patch). I have no idea if this could impact something else, because i'm not familar with wordpress code.