0
我有下面的代碼,編輯器加載並且不會給出錯誤。然而它並不強制裁剪/調整圖像大小。 我直接從示例複製配置,..(除了是主題) 但它以某種方式不起作用。Aviary「forceCropPreset」不工作
任何人都可以幫忙嗎?
aviaryObject = new Aviary.Feather({
apiKey: 'xxxx',
apiVersion: 3,
tools: 'all',
theme: 'light',
onSave: function(imageID, newURL) {
var img = document.getElementById(imageID);
img.src = newURL;
},
onError: function(errorObj) {
alert(errorObj.message);
}
});
aviaryObject.launch({
image: 'imgId',
url: [server-url],
forceCropPreset: ['Logo','150x150'],
forceCropMessage: 'Please crop your photo to this size',
});