I'm try to re size image using phpThumb class(this open source php class)
so i call above class
$phpThumb = new phpThumb();
$phpThumb->setParameter('w', 900);
$phpThumb->setParameter('h', 86);
but image not re size correct dimensions help to solution for this problem
To be honest, PHPThumbnailFactory is a really good class which you can use instead of the one you are currently using. With it, you could just say:
$thumb->resize(100, 100)->save('/path/to/new_thumb.jpg');
or something like:
$thumb->adaptiveResize(175, 175);
There are a lot of options. Check out the github
After you set the parameters you want like output destination, etc. you need to call the GenerateThumbnail function and then one of the output functions:
if ($phpThumb->GenerateThumbnail()) {
$phpThumb->OutputThumbnail();
}