using image type for hotel images and using standard size fr other images

This commit is contained in:
Shreesh Arora
2022-10-12 11:46:51 +05:30
committed by Shreesh Arora
parent b57126874c
commit fc3912d24e
21 changed files with 429 additions and 234 deletions

View File

@@ -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) {