View Single Post
Old 01-18-2011, 07:54 PM  
ScriptWorkz
Confirmed User
 
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
Quote:
Originally Posted by V_RocKs View Post
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.
You are correct and our thumbnailing code was a little off, it has been corrected. Thanks again for the feedback, and the tip
ScriptWorkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote