Keras - How to use ImageDataGenerator without deforming aspect ratio
I found an answer to my question.
There's currently no way to keep aspect ratio when using ImageDataGenerator / flow_from_directory, but a pull request is opened on Github to add this feature.