Design Annotator SDK for web helps to integrate AnnotatePro editor within any web application. With this SDK, you can allow your users to annotate images and export back to your app.
Benefits
It's free and it has no limits
Easy to use - integrate within a few steps
There are no external JS dependencies, just a 3kb SDK script
No data is stored on our servers, everything happens in the browser
It allows users to crop and resize images
Rich image annotation features with draw mode,markup components, effects and numerous stickers
Accepts HTML5 file object blob or any image URL endpoint
Supports JPG, GIF and PNG with transparency
Use cases
In blog editors, to annotate images before posting
Media sites to blur sensitive image areas
Documentation apps - annotate to highlight content
Initialise example 2: Pass optional parameters - width and height in px or percentage. Note: Atleast 800x600 px dimensions is required for the editor. So choose an element that has enough space for displaying the editor.
3) Ways to send image to the editor. This operation can be tied to an action like clicking on an edit button near an image. or on fileSelection from computer.
Supported input image types are - JPG, PNG (can have transparency) and GIF (static).
Actual code to send image to editor. Where the img parameter can be an Image URL or a HTML5 file obj.
Note: exportReady event is fired only when the user has clicked the export button within the editor.
5) Close event. It is fired when the user closes the annotation editor without exporting. Use this event to perform operations if the image is un-edited. Like hiding the editor's container element and returning to the main UI.
AnnotateEditorSDK.on('onClose', function (e) {
alert('Editor closed without exporting');
});
6) Other supported operations in SDK.
AnnotateEditorSDK.hide(); //for hiding the editor
AnnotateEditorSDK.show(); //for showing the editor
AnnotateEditorSDK.destroy(); //This removes the editor from the HTML document and clears memory
AnnotateEditorSDK.getFileBlob(); //converts exported image to file blob, that can be used for uploading to server using formdata.
Consolidating SDK code
//Initialize SDK and setup events after document ready or domcontentloaded
Here add an image step, select an image and then click 'Annotate Image' button, This will open the SDK editor where user can edit the image and export it back to the app.