UNPKG

@tnwx/miniprogram

Version:

TNWX 微信系开发脚手架之极速开发微信小程序

25 lines (24 loc) 783 B
/** * @author Javen * @copyright javendev@126.com * @description 图像处理相关 API */ export declare class ImgApi { /** * 图像处理 * @param type 接口URL * @param imgUrl 图片的URL */ static imgProcessingByUrl(type: ImgProcessingType, imgUrl: string): Promise<any>; /** * 图像处理 * @param type 接口URL * @param filePath 图片文件路径 */ static imgProcessingByFile(type: ImgProcessingType, filePath: string): Promise<any>; } export declare enum ImgProcessingType { AICROP = "https://api.weixin.qq.com/cv/img/aicrop?access_token=%s", QRCODE = "https://api.weixin.qq.com/cv/img/qrcode?access_token=%s", SUPERRESOLUTION = "https://api.weixin.qq.com/cv/img/superresolution?access_token=%s" }