timedoor / image-processing
Laravel Image Processing Module
Package info
github.com/backend-timedoor/image-processing
Language:JavaScript
pkg:composer/timedoor/image-processing
v0.0.1
2022-04-26 02:49 UTC
README
Manipulate crop or resize image before upload to server.
Installation
- Go to project dierectory
- Run
composer require timedoor/image-processing --dev - Run
php artisan imgproc:install - Select module you want to install
- The resource assets & componenets will be transfered to your project
- To implement this libary see the usage below.
Usage
- Add
<x-imgproc-inputfile>component to your form Example:... <div class="form-group"> <label for="photo"></label> <x-imgproc-inputfile class="additional-input-class" name="photo"></x-imgproc-inputfile> </div> ... - Then add
<x-imgproc-modal>componenet above the footer section Example:... <x-imgproc-modal title="Image Processing" :mode_cropper="true" :mode_resize="true"></x-imgproc-modal> ... - You setup either mode cropper or resize image with tag
:mode_cropper="(boolean)"and:mode_resize="(boolean)" - Done! now you good to go.
Contributing
Contributions are always welcome!
License
Licensed under the MIT License, see LICENSE for more information.
