



$image->readimage(realpath(RESIZED_UPLOAD_PATH.$source_file_name)) $image_rs->writeImage(realpath(RESIZED_UPLOAD_PATH)."/". $image_rs->setImageFormat($source_file_ext) $dimensions = $image_rs->getImageGeometry() $image_rs->readimage(realpath(SOURCE_UPLOAD_PATH.$source_file_name)) I tried all ways which are commented in the code. When user upload AI file then if Dimension of an uploaded file is less than or equal to (180 x 180) then I want to resize this file to increased dimension (277 x 277) and then convert it to JPG.
