Skip to content

Commit

Permalink
fixup! fix: don't persist previews used during blurhash generation
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny committed Jun 21, 2024
1 parent 0683d12 commit 0c23b1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/private/Preview/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ private function generateProviderPreview(ISimpleFolder $previewFolder, File $fil

if ($inMemory) {
if ($preview instanceof IStreamImage) {
return new InMemoryFile($path, $preview->resource());
$contents = stream_get_contents($preview->resource());
} else {
$contents = $preview->data();
}
return new InMemoryFile($path, $preview->data());
return new InMemoryFile($path, $contents);
}

try {
Expand Down

0 comments on commit 0c23b1d

Please sign in to comment.