joanvt/imagepicker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

joanvt/imagepicker

Composer 安装命令:

composer require joanvt/imagepicker

包简介

It creates a Laravel integration for ImagePicker (https://codecanyon.net/item/imagepicker-uploader-webcam-cropper/6722532)

README 文档

README

Image cropper for Laravel 5.4 You must get ImagePicker from Envato - ImagePicker

Just 14$ and you will get a nice jQuery plugin for uploading and cropping images.

Installation

composer require joanvt/imagepicker

Required editions

This package has a few improvements respect to the server files provided by ImagePicker. So it means you have to change a few things. I can't upload the jquery files because it belongs to ImagePicker (get it bro) and I am here to help to integrate this to Laravel and not to steal!

jquery.imagepicker.js

Line ~411: imagePreview = this.options.url + '?action=preview&file=' + image.name + '&width=800'

into this: (just add &path?'+image.path)

imagePreview = this.options.url + '?action=preview&file=' + image.name + '&width=800&path='+image.path;

Things to understand

You can try to follow the original documentation from Hazzardweb But I am introducing new features for a improved architecture for storing images with Laravel Flysystem.

i.e: upload_dir now refers to Storage Disk Laravel Filesystem

todo

  • wiki
  • Create Unit Tests
  • More Integrations with other Croppers

Done

  • Uploading Images
  • Retrieving Images
  • Rotate Images

统计信息

  • 总下载量: 93
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-08-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固