@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | private function makeImg($image_file, $name, $location, $width, $height, $quality) |
44 | 44 | { |
45 | 45 | $image = $image_file->storeAs($location, $name, 'public'); // Thumbnail Storage Information |
46 | - $img = Image::cache(function ($cached_img) use ($image_file, $width, $height) { |
|
46 | + $img = Image::cache(function($cached_img) use ($image_file, $width, $height) { |
|
47 | 47 | return $cached_img->make($image_file->getRealPath())->fit($width, $height); |
48 | 48 | }, config('thumbnail.image_cached_time', 10), true); //Storing Thumbnail |
49 | 49 | $img->save(public_path('storage/' . $image), $quality); //Storing Thumbnail |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | { |
104 | 104 | $filenamewithextension = $image_file->getClientOriginalName(); //Retriving Full Image Name |
105 | 105 | $raw_filename = pathinfo($filenamewithextension, PATHINFO_FILENAME); //Retriving Image Raw Filename only |
106 | - $filename = $this->validImageName($raw_filename);; // Retrive Filename |
|
106 | + $filename = $this->validImageName($raw_filename); ; // Retrive Filename |
|
107 | 107 | $extension = $image_file->getClientOriginalExtension(); //Retriving Image extension |
108 | 108 | $imageStoreNameOnly = $filename . '-' . time(); //Making Image Store name |
109 | 109 | $imageStoreName = $filename . '-' . time() . '.' . $extension; //Making Image Store name |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $fieldname => $img->storeAs($custom['storage'] ?? config('thumbnail.storage_path', 'uploads'), $imageStoreName, 'public'), // Storing Parent Image |
129 | 129 | ]); |
130 | 130 | |
131 | - $image = Image::cache(function ($cached_img) use ($image_file, $custom) { |
|
131 | + $image = Image::cache(function($cached_img) use ($image_file, $custom) { |
|
132 | 132 | return $cached_img->make($image_file->getRealPath())->fit($custom['width'] ?? config('thumbnail.img_width', 1000), $custom['height'] ?? config('thumbnail.img_height', 800)); //Parent Image Interventing |
133 | 133 | }, config('thumbnail.image_cached_time', 10), true); |
134 | 134 | $image->save(public_path('storage/' . $this->$fieldname), $custom['quality'] ?? config('thumbnail.image_quality', 80)); // Parent Image Locating Save |