imgareaselect + php实现图片裁剪
程序员文章站
2022-03-17 10:42:08
...
php代码
/js/jquery.imgareaselect-0.9.10/css/imgareaselect-default.css 引用js /js/jquery.imgareaselect-0.9.10/scripts/jquery.imgareaselect.min.js /js/AjaxFileUploaderV2.1/ajaxfileupload.js
2.php代码
<div> <img src='blank.jpg' id="mainimg"> </div> <div id="myPreview" > <img src="blank.jpg" id="mainimgthumb" /> </div> <form name="fmCrop"> <input type="hidden" name="src_path" value="" /> <input type="hidden" name="x1" value="" /> <input type="hidden" name="x2" value="" /> <input type="hidden" name="y1" value="" /> <input type="hidden" name="y2" value="" /> <input type="submit" name="btnSubmit" class="baseinf_but1" style="display:none" value="确定" /> </form>