timedoor / image-processing
Laravel Image Processing Module
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 2
Open Issues: 0
Language:JavaScript
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.