Added drawing update ability

This commit is contained in:
Dan Brown
2018-01-20 14:01:35 +00:00
parent 920964a561
commit 1bfd77e7a1
5 changed files with 78 additions and 1 deletions

View File

@ -156,6 +156,18 @@ class ImageRepo
return $image;
}
/**
* Replace the image content of a drawing.
* @param Image $image
* @param string $base64Uri
* @return Image
* @throws \BookStack\Exceptions\ImageUploadException
*/
public function replaceDrawingContent(Image $image, string $base64Uri)
{
return $this->imageService->replaceImageDataFromBase64Uri($image, $base64Uri);
}
/**
* Update the details of an image via an array of properties.
* @param Image $image