Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get image width and height in laravel

Core php :
list($width, $height, $type, $attr) = getimagesize($_FILES["gallery_image"]['tmp_name']);

With Intervention :
$upload_file = $request->file('gallery_image');
$height = Image::make($upload_file)->height();
$width = Image::make($upload_file)->width();
Comment

how get the Photo size upload in laravel

$request->file('image')->getSize()
Comment

how get the photo size upload in laravel

 request()->validate([
            'image' => 'image|mimes:jpeg,png,jpg|max:2048',
        ]);
Comment

how get the size of image in laravel

   $image = getimagesize($request->image);
        $width = $image[0];
        $height = $image[1];
Comment

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);
Comment

PREVIOUS NEXT
Code Example
Php :: middleware command in laravel 
Php :: php while loop 
Php :: remove invalid characters from a string laravel 
Php :: laravel belongs to 
Php :: laravel uuid not showing in query 
Php :: display all files in a directory php 
Php :: acf add options page to custom post type 
Php :: how to declare global variable in laravel controller 
Php :: attach function in laravel 
Php :: math functions and predefined constants php 
Php :: laravel migration column types 
Php :: database, counts 
Php :: php explode empty string 
Php :: cron job every 5 minutes wordpress 
Php :: disable sidebar widget wordpress 5.8 
Php :: laravel basic login 
Php :: remove time from date in carbon 
Php :: foreach loop not working in php 
Php :: the post function wordpress 
Php :: doctrine getrepository findby 
Php :: laravel textarea value 
Php :: laravel where and blade 
Php :: laravel migration change column order 
Php :: catch warning php 
Php :: fallo al conectar al servidor ftp wordpress 
Php :: how to add x-xss-protection header 
Php :: why the laravel project have many cache 
Php :: php howto ignore file with BOM 
Php :: user order by role spatie laravel 
Php :: php get referrer ajax 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =