Quote:
Originally Posted by FaizanRoshan
Its work good but no as i want, if original picture height > width then after running code its resize on width and crop height with picture size. or if width > height then code resize width only with cell size.
|
Well, you did say in your first post:
Quote:
fill the target cell(s) without exceeding their boundaries
|
Unless the aspect ratio is the same as the cell, you cannot fill it in both directions without exceeding the boundaries. But, if that's what you want, change > to <.