timedoor/image-processing

Laravel Image Processing Module

v0.0.1 2022-04-26 02:49 UTC

This package is auto-updated.

Last update: 2024-10-12 13:04:24 UTC


README

Latest Stable Version Total Downloads License

image-processing

Manipulate crop or resize image before upload to server.

Installation

  1. Go to project dierectory
  2. Run composer require timedoor/image-processing --dev
  3. Run php artisan imgproc:install
  4. Select module you want to install
  5. The resource assets & componenets will be transfered to your project
  6. To implement this libary see the usage below.

Usage

  1. 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>
     ...
  2. 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>
    ...
  3. You setup either mode cropper or resize image with tag :mode_cropper="(boolean)" and :mode_resize="(boolean)"
  4. Done! now you good to go.

Contributing

contributions-wellcome

Contributions are always welcome!

License

Licensed under the MIT License, see LICENSE for more information.