# Screen Capture and Image Annotation Project This project provides two main functionalities: 1. Screen Capture: A pluggable web control to capture the current browser viewport. 2. Image Annotation: A tool to annotate PNG images with arrows, textboxes, and symbols. ## Features ### Screen Capture - Capture the current browser viewport as a PNG image. - Exclude sensitive information from inputs and textareas. - Capture modals and floating elements. - Save the captured image as a PNG file. ### Image Annotation - Upload and display PNG images. - Add arrows, textboxes, and symbols to the image. - Erase annotated elements. - Save the annotated image as a Base64 PNG string. ## Usage ### Screen Capture Include the necessary files in your HTML: ```html ``` Initialize the plugin on a button: ```javascript $('.capture-screen').screenshotButton(); ``` ### Image Annotation Include the necessary files in your HTML: ```html ``` Initialize the plugin on a container: ```javascript $('.annotator-png').annotatorPNG(); ``` Include any necessary symbols for adding to the canvas as annotations: 1. Add files to symbols folder 2. Add file names to symbols list on line 51 in plugin_annotate_PNG.js ## Testing To run the tests: 1. Open the views in your browser. To disable the tests: 1. Comment out the line "mocha.run();" in the testing script header in the view ## Known bugs - Colour picker button must be clicked to set colour of active canvas object after selecting colour