Package Data | |
---|---|
Maintainer Username: | nnieheayp |
Maintainer Contact: | nnieheayp@yahoo.com (Pyae Hein) |
Package Create Date: | 2017-06-08 |
Package Last Update: | 2017-06-08 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-16 03:01:56 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Laravel LQIP package, which includes:
$ composer require pyaehein/laravellqip
PyaeHein\LQIP\LQIPServiceProvider::class,
$ php artisan vendor:publish
<script src="{{ asset('vendor/lqip/lazysizes/lazysizes.min.js')}}" async=""></script>
<style>
.blur-up {
-webkit-filter: blur(25px);
filter: blur(25px);
transition: filter 400ms, -webkit-filter 400ms;
}
.blur-up.lazyloaded {
-webkit-filter: blur(0);
filter: blur(0);
}
</style>
<img {!! lqip('helloworld.jpg') !!} class="lazyload blur-up" >
'lqip' => [
'driver' => 'local',
'root' => public_path('uploads/images')
],
return [
'path' => 'uploads/images',
'disk' => 'lqip',
'prefix' => '_lqip',
'format' => 'jpg',
'blur' => '99', // 0 to 100
'quality' => '1' // 0 to 100
];
Config file's 'path' is used for Image Library Intervention to auto create lqip image. Because, it doesn't support laravel's filesystem. So, your lqip image can be create only in your public folder :(
I just make it for my project requirement. So, it can't be match like what u want.
Laravel LQIP is free for non-commercial use.