Home > php教程 > php手册 > PHP+html5+base64加密手机移动设备上传图片

PHP+html5+base64加密手机移动设备上传图片

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 11:35:34
Original
1285 people have browsed it

jquery.photoClip.js是一款图片裁剪插件,然后我们用Ajax把裁剪出来的内容放到图片里。
PHP+html5+base64加密手机移动设备上传图片
photoClip.js图片裁剪调用方法:$("#clipArea").photoClip({ <br>     width: 300, <br>     height: 300, <br>     file: "#file", <br>     view: "#view", <br>     ok: "#clipBtn", <br>     loadStart: function() { <br>         $(".photo-clip-rotateLayer").html("<img alt="PHP+html5+base64加密手机移动设备上传图片" >"); <br>         console.log("照片读取中"); <br>     }, <br>     loadComplete: function() { <br>         console.log("照片读取完成"); <br>     }, <br>     clipFinish: function(dataURL) { <br>         $.ajax({ <br>             url: "upload.php", <br>             data: {str: dataURL}, <br>             type: 'post', <br>             dataType: 'html', <br>         }) <br>     } <br> });PHP+AJax处理裁剪图片photoClip.jsjquery.photoClip.js详细API参数和演示:http://www.sucaihuo.com/js/684.html

附件 PHP支持手势的手机端图片裁剪上传.zip ( 822.54 KB 下载:95 次 )

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template