Aviary/Creative SDK 이미지 편집기로 이미지 교체 (Replace image with Aviary/Creative SDK Image Editor)


문제 설명

Aviary/Creative SDK 이미지 편집기로 이미지 교체 (Replace image with Aviary/Creative SDK Image Editor)

저는 프로젝트에 Aviary 이미지 편집기를 사용하고 있습니다. 모든 것이 작동하지만 "저장" 버튼이 아닙니다.

현재 편집 이미지를 저장하거나 바꿀 수 없습니다. 열 수 있습니다.

지원은 실제로 도움이 되지 않으며 답변을 받는 데 몇 주가 걸립니다.

저는 표준 예시


참조 솔루션

방법 1:

Aviary replaced by the Creative SDK Image Editor

Please note that Aviary was acquired by Adobe in 2014 and is now part of The Creative SDK. All versions of Aviary are now outdated and have been replaced by the Creative SDK Image Editor.

Receiving the edited image

As you note, when you click Save, you will receive the edited image in the form of an Amazon URL. This link only exists on the Amazon server for 72 hours, so you will want to do something with it.

Replacing an img element's source

As a basic example, you can use the returned Amazon URL to replace an image element's source inside of the Aviary.Feather configuration object's onSave method.

var featherEditor = new Aviary.Feather({
    apiKey: '<YOUR_KEY_HERE>',
    onSave: function(imageID, newURL) {
        currentImage.src = newURL; // `currentImage` is a DOM image element
        featherEditor.close();
    },
    onError: function(errorObj) {
        console.log(errorObj.code);
        console.log(errorObj.message);
        console.log(errorObj.args);
    }
});

Inside of onSave, we're saying here to replace currentImage's source with the newURL that comes back from Amazon.

Somewhere in your script, you would need to define what this currentImage is. For example, if you are using jQuery, you might write something like:

var currentImage = $('#editable‑image')[0];

Note that we use the 0th element here in order to get the actual DOM element, not the jQuery object.

This is just one example, but you could do it several ways.

Example repo

Have a look at this example repo using jQuery for further details.

(by stefjoeAsh Ryan Arnwine)

참조 문서

  1. Replace image with Aviary/Creative SDK Image Editor (CC BY‑SA 2.5/3.0/4.0)

#adobecreativesdk #image-editor #javascript #aviary






관련 질문

Swift의 Adobe Creative SDK (Adobe Creative SDK in Swift)

대화 상자 없이 Avairy 실행(div 내부) (Launch Avairy without a dialog (inside div))

Aviary/Creative SDK 이미지 편집기로 이미지 교체 (Replace image with Aviary/Creative SDK Image Editor)

Ionic/Cordova에서 Adobe Creative SDK Feather Editor를 통합하는 방법 (How to integrate Adobe Creative SDK Feather Editor in Ionic/Cordova)

64비트 Android 장치에서 .so 파일을 찾을 수 없습니다. (Can not find .so file on 64 bit android device)

편집된 이미지를 웹에 저장하기 위한 Adobe Creative SDK (Adobe Creative SDK for Web saving edited image)

크리에이티브 SDK. MainActivity를 실행한 다음 이미지 편집기를 시작합니다. 그런 다음 홈 키. 그런 다음 앱으로 돌아갑니다. 이미지 편집기 활동이 사라짐 (Creative SDK. MainActivity then launch Image Editor. then home key. then back to app. Image Editor activity disappear)

Creative SDK에 맞춤 프레임 및 스티커 추가 (Adding Custom Frames and Stickers to Creative SDK)

Aviary 웹 SDK 자르기 도구 및 모바일 브라우저 기능이 작동하지 않음 (Aviary web SDK crop tool and mobile browser features not working)

Aviary Image Editor에서 사용자 로그인 버튼 제거 (Removing user login button on Aviary Image Editor)

자르기 도구를 연 상태에서 강제 자르기/시작 (Force crop/start with crop tool open)

Adobe 크리에이티브 SDK가 Android Nougat에서 작동하지 않음 (Adobe creative SDK not working for Android Nougat)







코멘트