• Adobe出品(支持IOS,android,web调用)免费插件编辑图片


    <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>

  • 相关阅读:
    爬取虎牙小姐姐热舞 Python
    爬某音乐平台的付费音乐 Python 被标题党搞烦了的可以来看看
    爬取某站的文档 Python
    解决网页复制限制
    英文拼写检查
    记测评文章
    Standard Deviation (SD), Standard Error (SE),Confidence Interval (CI). 画barplot,置信区间
    conditional analysis 把发现的lead SNP作为协变量看LD内是否有其他显著SNP
    知网下载pdf格式
    MAC环境配置
  • 原文地址:https://www.cnblogs.com/weimingxin/p/8966488.html
Copyright © 2020-2023  润新知