Code Monkey home page Code Monkey logo

slim-image-cropper's Introduction

说明

官网:http://slimimagecropper.com/
Demo: https://github.com/trigo-at/slim-image-cropper-test
字里行间Demo(其上传个人头像,文章中插入的图片,皆是使用slim cropper):https://zi.com

  1. 收费请访问官网。
  2. 以laravel框架为例,以个人编辑头像为场景,以demo源码为根本,来记录这次的日志行为。
  3. 该代码使用的皮肤为官方默认皮肤。如果定制,需要自己手动修改。

安装

git clone https://github.com/mlxiu/slim-image-cropper.git

mv slim-image-cropper slim

cd slim

# 安装插件
composer install

# 准备配置(主要修改APP_URL)
cp .env.example .env
vi .env

# 生成key
php artisan key:generate

访问即可。

如果是 linux系统,请设置访问权限

chmod -R 777 storage

# 创建uploads目录,使得权限可写入
cd public
mkdir uploads
chmod -R 777 uploads

再次访问即可正常。

访问图片信息,请看控制台。

效果截图

file

file

file

file

slim-image-cropper's People

Contributors

mlxiu avatar vini123 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.