using image type for hotel images and using standard size fr other images
This commit is contained in:
committed by
Shreesh Arora
parent
b57126874c
commit
fc3912d24e
@@ -317,7 +317,13 @@ class AdminFeaturesModuleSettingController extends ModuleAdminController
|
||||
if (file_exists($imgPath)) {
|
||||
unlink($imgPath);
|
||||
}
|
||||
ImageManager::resize($file['tmp_name'], $imgPath);
|
||||
$imageSize = ImageType::getTypeByName(ImageType::getFormatedName('large'));
|
||||
ImageManager::resize(
|
||||
$file['tmp_name'],
|
||||
$imgPath,
|
||||
$imageSize['width'],
|
||||
$imageSize['height']
|
||||
);
|
||||
}
|
||||
|
||||
if ($hotelAmenityId) {
|
||||
|
||||
Reference in New Issue
Block a user