Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel - Resize image size using Laravel image class

$path = storage_path() . '/app/public/uploads/users/' . Hashids::encode($User->id) . '/' . $file_temp_name;
                    $img = Image::make($file)->fit(1024);
                    $img->save($path);
 
PREVIOUS NEXT
Tagged: #Laravel #Resize #image #size #Laravel #image #class
ADD COMMENT
Topic
Name
6+7 =