How can I set resize image by height, not width

Images resized by width result in thumbnail frames not being consistent within rows.

I’d like to set the code of the admin pages to resize image downloaded by ‘local’ to be resized by height.



someone have a fix or an Idea of where to look?



Thanks!