|
@@ -138,7 +138,7 @@ if (!function_exists('ImageResizeNew')) { |
|
|
{
|
|
|
{
|
|
|
try {
|
|
|
try {
|
|
|
$image = new ImageResize($srcFile);
|
|
|
$image = new ImageResize($srcFile);
|
|
|
$image->resizeToBestFit($toW, $toH);
|
|
|
|
|
|
|
|
|
$image->resize($toW, $toH);
|
|
|
if ($issave) {
|
|
|
if ($issave) {
|
|
|
$image->save($toFile);
|
|
|
$image->save($toFile);
|
|
|
} else {
|
|
|
} else {
|
|
|