I have a code that make a re-size and crop to a picture.
First he resize the picture and after that put the picture in the middle of the white background.
The only problem is if a picture is vertical add black color in the right side instead of white.
For horizontal pictures it's ok.
Why is adding the black color in the right side ?
Thank you