Giter VIP home page Giter VIP logo

qiniu_ueditor_1.4.3's Introduction

qiniu_ueditor_1.4.3

UPDATE

  • 添加了单图上传功能
  • 可以自己设置文件名保存名称,date为unix时间戳,留空为文件名保存
  • 支持截图上传功能
  • 修复了以前的小BUG
  • 图片水印支持

UEditor1.4.3版本-直接上传视频、附件、图片到七牛云存储,并且支持图片在线管理功能

###配置

./php/conf.php

//配置$QINIU_ACCESS_KEY和$QINIU_SECRET_KEY 为你自己的key
$QINIU_ACCESS_KEY	= 'your akey';
$QINIU_SECRET_KEY	= 'your skey';

//配置bucket为你的bucket
$BUCKET = "your bucket";

//配置你的域名访问地址
$HOST  = "your qiniu domain";

//上传超时时间
$TIMEOUT = "3600";

//保存规则
$SAVETYPE = "date"; //现在支持unix时间戳,unix时间戳写date,如果文件名上传就留空

./php/config.json

"imageSaveType"  : "date", 默认date为unix时间戳,留空则文件名方式上传

###水印

./php/conf.php

//开启水印,不开启为false
$USEWATER = true;
//水印图片的七牛地址
$WATERIMAGEURL = "http://gitwiduu.u.qiniudn.com/ueditor-bg.png"; //七牛上的图片地址
//水印透明度
$DISSOLVE = 50;
//水印位置
$GRAVITY = "SouthEast";
//边距横向位置
$DX  = 10;
//边距纵向位置
$DY  = 10;

//水印具体位置分布如下

NorthWest     |     North      |     NorthEast
              |                |    
              |                |    
--------------+----------------+--------------
              |                |    
West          |     Center     |          East 
              |                |    
--------------+----------------+--------------
              |                |    
              |                |    
SouthWest     |     South      |     SouthEast

然后就可以了!

###上传演示

./upload.png

###图片在线管理

###博客支持技术支持http://www.widuu.com

qiniu_ueditor_1.4.3's People

Contributors

widuu avatar aidenhe avatar osindex avatar

Watchers

James Cloos 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.