<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>图片编辑</title>
    <script src="js/jquery-1.7.2.js"></script>
    <script src="https://dme0ih8comzn4.cloudfront.net/js/feather.js"></script>
    <script type='text/javascript'>
        //在线编辑图片功能,第三方插件,完全免费
        var featherEditor = new Aviary.Feather({
            apiKey: '3092928019@qq.com',//apikey可以免费申请,https://creativesdk.adobe.com/docs/web/#/index.html
            apiVersion: 3,
            theme: 'dark', // Check out our new 'light' and 'dark' themes!
            tools: 'all',//这里设置为all,可以显示所有的工具
            initTool: 'text',//默认展开的工具
            language: 'zh_HANS',//简体中文
            appendTo: '',
            onSave: function (imageID, newURL) {

alert(newURL);
                //$.ajax({
                //    url: "ashx/UserInfo.ashx?t=chAvatar&imgUrl=" + newURL + "&rand=" + Math.random(),
                //    success: function (url) {
                //        alert('保存成功');
                //        var img = document.getElementById(imageID);
                //        img.src = url;
                //    },
                //    error: function () {
                //        alert('error')
                //    }
                //});

},
            onError: function (errorObj) {
                alert(errorObj.message);
            }
        });
        function launchEditor(id, src) {
            featherEditor.launch({
                image: id,
                url: src
            });
            return false;
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
     <div id='injection_site'></div>
       <img id='image1' src='img/cloud.jpg'/>
      <!-- Add an edit button, passing the HTML id of the image and the public URL of the image -->
      <p><input type='image' src='' value='Edit photo' onclick="return launchEditor('image1', 'img/cloud.jpg');" /></p>
   </form>
 </body>

最新文章

  1. Unicode 和 UTF-8 有何区别?
  2. iOS--xuer(registration)
  3. Windows 10 使用C#如何将IE设置为默认浏览器
  4. ApiResponse 在 Swagger 1 和Swagger 2中的不同
  5. C++模板&amp;泛型编程
  6. 当匿名类型遇上Distinct
  7. The StringFormat property
  8. common.support.percent.PercentFrameLayout.onLayout(PercentFrameLayout.java:151)
  9. rails获取json内容
  10. iOS项目的目录结构和开发流程
  11. elasticsearch的基本用法
  12. POI读取公式的值
  13. Android中Broadcast Receiver组件具体解释
  14. Windows 8 应用开发 - 磁贴
  15. SRS微信号和QQ组
  16. 【译】TensorFlow Python Docs 之 overview
  17. Linux下,Nginx的安装、升级及动态添加模块
  18. Mysql连接出错问题
  19. tinkpad e450c 进入 BIOS
  20. 图像旋转、伸缩的自写matlab实现

热门文章

  1. Java 建造者模式 简单的理解
  2. 京东POP店铺使用京东物流切仓操作方法
  3. JAVA笔记7-Object类之toString方法和equals方法
  4. LVS 学习
  5. APIView源码与Request源码分析
  6. python 中字符串转 二进制 /ASCII码
  7. Jmeter(一) 安装
  8. python-Django框架
  9. LeetCode 129. 求根到叶子节点数字之和(Sum Root to Leaf Numbers)
  10. MySQL 建表时 date 类型的默认值设置