# system.kanoa.quality.image.processImage(filePath, chkItemId, imageId, imageName, imageType, imageDescription, userId)

Given a filepath, this function will convert the image found to a jpg, create a thumbnail and store it in the database

---
### Parameters
**filePath** `String`: Path to the image file<br />
**chkItemId** `Integer`: Id of check item. Can be None<br />
**imageId** `Integer`: Id of image. Can be None for a new image<br />
**imageName** `String`: Name for the image<br />
**imageType** `String`: Type of the image. Can be user defined.<br />
**imageDescription** `String`: Description of the image<br />
**userId** `Integer`:Id of the user executing the function<br />

---
### Returns
**imageId** `Integer`<br />
**message** `String` None if success<br />

---
### Example
```python
filePath = 'C:\\Users\\jason\\Pictures\\Saved Pictures\\2022-07-10 03.21.12.jpg'
chkItemId = 42
imageId = none
imageName = 'Old Market Town'
imageType = 'photo'
imageDescription = 'Lovely day out in Shropshire'
userId = 5
imageId, msg = system.kanoa.quality.image.processImage(filePath, chkItemId, imageId, imageName, imageType, imageDescription, userId)
```
