Fixes #93 . you have now 3 thumbnail options: <?php thumbnail($path, $width, $height, array('mode'=>['crop', 'resize', 'best_fit']));?> - crop is default