import invoker from"./invoker";export var COMPRESS_LEVEL;!function(e){e[e.ADJUST_BY_NET=0]="ADJUST_BY_NET",e[e.LOW_QUALITY=1]="LOW_QUALITY",e[e.MID_QUALITY=2]="MID_QUALITY",e[e.HIGH_QUALITY=3]="HIGH_QUALITY",e[e.NOT_COMPRESSED=4]="NOT_COMPRESSED",e[e.CUSTOM=5]="CUSTOM"}(COMPRESS_LEVEL||(COMPRESS_LEVEL={})),invoker.registerAPI("reduceImageSize",{mini:!0,mobile:!0,pc:function(e,i){window.dingtalk.platform.invokeAPI(i.msgId,"reduceImageSize",e)}}),reduceImageSize.version={ios:"2.1.0",android:"2.1.0",pc:"2.1.0"};export default function reduceImageSize(e){return invoker.invoke("reduceImageSize",e)}