On top of this... It should resize to fit the closest height or width and then crop the thumb.
So if I upload a 400x300 thumb and it needs to be 125x100 it will: 400/300 = 1.33 which is greater than 1.25 (our thumb we want). Therefor it will now resize by height making a 133x100 thumb which will be center cropped down to 125x100.
Had it been 300x400 it would have been a lower number: .75
Then it would resize by width max of 125 to 125x166 and then cropped to 125x100.
|