|
@@ -31,7 +31,7 @@ discard block |
|
|
block discarded – undo |
|
31
|
31
|
]); |
|
32
|
32
|
/* --------------------------------------------------------------------------------------------- */ |
|
33
|
33
|
|
|
34
|
|
- $image = Image::cache(function ($cached_img) use ($image_file, $custom) { |
|
|
34
|
+ $image = Image::cache(function($cached_img) use ($image_file, $custom) { |
|
35
|
35
|
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 |
|
36
|
36
|
}, config('thumbnail.image_cached_time', 10), true); |
|
37
|
37
|
$image->save(public_path('storage/' . $this->$fieldname), $custom['quality'] ?? config('thumbnail.image_quality', 80)); // Parent Image Locating Save |
|
@@ -57,7 +57,7 @@ discard block |
|
|
block discarded – undo |
|
57
|
57
|
private function makeImg($image_file, $name, $location, $width, $height, $quality) |
|
58
|
58
|
{ |
|
59
|
59
|
$image = $image_file->storeAs($location, $name, 'public'); // Thumbnail Storage Information |
|
60
|
|
- $img = Image::cache(function ($cached_img) use ($image_file, $width, $height) { |
|
|
60
|
+ $img = Image::cache(function($cached_img) use ($image_file, $width, $height) { |
|
61
|
61
|
return $cached_img->make($image_file->getRealPath())->fit($width, $height); |
|
62
|
62
|
}, config('thumbnail.image_cached_time', 10), true); //Storing Thumbnail |
|
63
|
63
|
$img->save(public_path('storage/' . $image), $quality); //Storing Thumbnail |