I want to achieve following
1. Editing a image by drawing it on canvas(by drawing shape such as rectangle, circle, pencil etc)
2. To store only the drawing on canvas and not the entire canvas with image. This will be considered as single layer. User can draw as many layers on same image and save each layer separately so later he can choose the required layer and view it on canvas again.
3. As I have to store these layers somewhere, could you please help on how should I save it. Should I separate each layer separately in database or should I store coordinates for the shapes in database(this won![enter image description here][1]’t be helpful in case of pencil tool)?(need smarter approach then working harder)
4. Also user should be able to change the shape colors as per configuration(please have a look to my attached file)
5. Not finished yet. When hovered over any drawn line, the tooltip corresponding to that line should be displayed.
Please help me with proper approach to do this.