美图WEB开放平台-图片美化上传插件

samool 发布1 条评论10030 阅读

AI摘要

美图秀秀开放插件提供四个版本,包括M1完整版、M2美化图片、M3拼图和M4头像编辑器,可通过统一接口调用。插件地址、DEMO演示和开发者博客均已提供。使用时需下载crossdomain.xml文件并放置在服务器根目录下,以便授权美图域下的flash上传或加载图片。调用方法包括引用JS代码和查看演示。

美图秀秀开放插件包含美图秀秀M1(完整版)、美图秀秀M2(美化图片)、美图秀秀M3(拼图)及美图秀秀M4(头像编辑器),我们已经对四个版本进行整合,提供一致的接口供您调用。

插件地址:http://open.web.meitu.com/wiki/

DEMO演示地址:https://blog.csdn.net/webmeitu/article/details/39377285

开发者博客:https://me.csdn.net/webmeitu

使用方法

下载crossdomain.xml文件,把解压出来的crossdomain.xml文件放在您保存图片或图片来源的服务器根目录下,
比如: http://example.com.cn,那么crossdomain.xml的路径为:http://example.com.cn/crossdomain.xml。
需要注意的是crossdomain.xml必须部署于站点根目录下才有效, crossdomain.xml的目的是授权来自美图域下的flash向您的站点上传图片或者从您的站点加载图片。
【备注】由于本地测试会被flash安全沙箱拦住,请自行搭建web服务器,在web 环境中测试。

调用方法

1、引用JS代码
在你的网页代码head标签里或者body标签里加入代码。

<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>

2、使用演示(demo),快速上手
3、如需更详尽文档解释,可到开发博客查阅。

  1. 01Vue过滤器实例:输入字符串将首写字母转换为大写2020-06-15
  2. 02js分析页面停留时间及来源2020-02-27
  3. 03JS使用setInterval或setTimeout隔几秒后跳转页面2019-12-29
  4. 04jQuery带提示的ajax删除数据2019-12-16
  5. 05jQuery解决checkbox未选中不提交值的问题2019-12-14
  6. 06jQuery switchery 类似IOS的开关按钮使用2019-12-14
  7. 07Typecho侧栏增加“成长历史”信息2019-11-18
  8. 08javascript 机器人2008-04-24
  9. 09Sablog1.6 站点地图(SiteMap)插件2007-10-12
  10. 10常用的Firefox插件2007-10-11
COMMENTS / 一纸留言

读者留言 1 条

一纸留言,便是山水间的一次相逢。

  1. aa aa

    aaa ̄﹃ ̄ ::twemoji:notalk::

WRITE A COMMENT

写下你的留言