mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
ZIP Exports: Added working image handling/inclusion
This commit is contained in:
@@ -133,6 +133,19 @@ class ImageService
|
||||
return $disk->get($image->path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the raw data content from an image.
|
||||
*
|
||||
* @throws Exception
|
||||
* @returns ?resource
|
||||
*/
|
||||
public function getImageStream(Image $image): mixed
|
||||
{
|
||||
$disk = $this->storage->getDisk();
|
||||
|
||||
return $disk->stream($image->path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy an image along with its revisions, thumbnails and remaining folders.
|
||||
*
|
||||
|
Reference in New Issue
Block a user