Flick Image Annotation Plugin For jQuery - Download Flick-style Image Annotation Plugin For jQuery

Download Flick-style Image Annotation Plugin For jQuery

Posted on

This time I will share jQuery Plugin and tutorial about Flick-style Image Annotation Plugin For jQuery, hope it will help you in programming stack.

Flick Image Annotation Plugin For jQuery - Download Flick-style Image Annotation Plugin For jQuery
File Size: 81.3 KB
Views Total: 4011
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

A Flick-style, AJAX-enabled image annotation plugin which allows to dynamically create/edit/remove Flickr-like interactive comments (note, markers) on your images.

How to use it:

1. Load the necessary jQuery and jQuery UI libraries in the html document.

1 <script src="/path/to/jquery.min.js"></script>
2 <script src="/path/to/jquery-ui.min.js"></script>

2. Load the jQuery Image Annotation’s JavaScript and CSS files in the document.

1 <link href="css/annotation.css" rel="stylesheet">
2 <script src="js/jquery.annotate.js"></script>

3. Add custom annotations to your images using notes array as this:

01 $("#img-to-annotate").annotateImage({
02   useAjax: false,
03   notes: [{
04     "top": 286,
05     "left": 161,
06     "width": 52,
07     "height": 37,
08     "text": "Text-1",
09     "id": "id-1",
10     "editable": false
11   },{
12     "top": 134,
13     "left": 179,
14     "width": 68,
15     "height": 74,
16     "text": "Text-2",
17     "id": "id-2",
18     "editable": true
19   }]
20 });

4. Add/edit/remove image annotations via AJAX requests.

1 $("#img-to-annotate").annotateImage({
2   getUrl: 'your-get.rails',
3   saveUrl: 'your-save.rails',
4   deleteUrl: 'your-delete.rails'
5 });

5. Prevent your users from editing the image annotations.

1 $("#img-to-annotate").annotateImage({
2   editable: false
3 });

This awesome jQuery plugin is developed by flipbit. For more Advanced Usages, please check the demo page or visit the official website.

source : jqueryscript.net