Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

image resize with laravel image intervention

// import 
use Image;

// image resize with laravel image intervention
 
 $img = $request->file('profile_image');
            $image = $request->profile_image->extension();
            $imageName = uniqid() . '.' . $image;
            $image_resize = Image::make($img->getRealPath());
            $image_resize->resize(636,852);        
            $path = 'uploads/' . $imageName;
            $image_resize->save($path);
            $imageUri = 'uploads/' . $imageName;  
Source by nfandrich.net #
 
PREVIOUS NEXT
Tagged: #image #resize #laravel #image #intervention
ADD COMMENT
Topic
Name
9+5 =