Aviary(Abode Creative SDK)和本地开发

时间:2017-08-23 12:45:45

标签: aviary adobecreativesdk

我一直试图从localhost编辑照片。我尝试在base64中对我的照片进行编码,但它仍然失败。

考虑到Aviary.Feather是初学者并且在制作中处以罚款,以下是我的代码示例:

var success = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD.....";
$("#imageEditor").attr("data-id", id);
$("#imageEditor").attr("src", success);
imageEditor.launch({
    image: "imageEditor",
    url: success,
    hiresUrl: success
});

它返回错误:

ERROR_SAVING_HI_RES:{code:18,message:"There was a problem saving your photo."}

1 个答案:

答案 0 :(得分:0)

这就是我在本地环境中设置Aviary Image编辑器插件的方法:

<extensioninfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="extensioninfo.xsd">

   <extension abstractclassprefix="Generated" classprefix="Sma" managername="SmaManager" managersuperclass="de.hybris.platform.jalo.extension.Extension" name="sma" usemaven="false">
      <!-- for more information on maven managed libraries please consult https://wiki.hybris.com/x/Nq8sDQ -->

      <!-- you should add all required extensions to this list, except platform extensions which are automatically required -->         
      <!-- <requires-extension name="cms"/> -->         

        <requires-extension name="services"/>
      <coremodule generated="true" manager="com.company.sma.jalo.SmaManager" packageroot="com.company.sma"/>

      <webmodule jspcompile="false" webroot="/sma"/>

   </extension>

</extensioninfo>

参考