# Run miniPaint - Browser Based Image Editor - on Windows

## What is miniPaint?

[miniPaint is an] online image editor lets you create, edit images using HTML5 technologies. No need to buy, download, install or have obsolete flash. No ads. Key features: layers, filters, HTML5, open source, Photoshop alternative.
miniPaint operates directly in the browser. You can create images, paste from the clipboard (ctrl+v) or upload from the computer (using menu or drag & drop). Nothing will be sent to any server. Everything stays in your browser. -https://github.com/viliusle/miniPaint

## Installing miniPaint

1. Log into the Windows device
2. Download the latest miniPaint release Download
3. Download NodeJS Download
4. Install NodeJS, accepting all defaults
5. Extract the downloaded miniPaint files
6. Rename the extracted folder miniPaint
7. Cut the miniPaint folder to a location it can safely run from, C:\Program Files\miniPaint in this example
8. Hold the SHIFT key and right click in the white space > Open PowerShell windows here...
9. Run the following commands in the PowerShell window
   # install dependencies
   npm install
   # build minipaint
   npm run build
   # run minipaint
   npm run server
10. Open a web browser and navigate to http://DNSorIP:8080
11. Welcome to miniPaint

## Run miniPaint on System Startup (Optional, but recommended)

1. Press CTRL + C to kill the running miniPaint process
2. Open a text editor and paste the following

   :: Start miniPaint server
   cd /D "%~dp0"
   start "miniPaint" /b npm run server

3. Save the file as minipaint.bat in the miniPaint directory, C:\Program Files\miniPaint in this example
4. Click on the Start Button > Type task > Launch Task Scheduler
5. Right click the Task Scheduler Library folder in the left pane > Create Basic Task...
6. Set the name to miniPaint and optionally set a Description > Click Next
7. For the Trigger, select When the computer starts > Click Next
8. For the Action, select Start a program > Click Next
9. Complete the form fields as follows:

   Program/script: "%ProgramFiles%\miniPaint\minipaint.bat"
   Add arguments:
   Start in:

10. Click Next
11. Check the Open the Properties dialog checkbox > Click Finish
12. In the Properties dialog, click the Change User or Group... button
13. Type System in the Object name field > Click OK
14. Check the Run with highest privileges box
15. Click OK to create the scheduled task
16. Right click the miniPaint task > Run
17. Refresh the open web browser to verify miniPaint is now running from the scheduled task

Source: https://github.com/viliusle/miniPaint/wiki/Build-instructions