mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +00:00
Improve the speed for blurhash generation
This commit is contained in:
parent
6cebe766bd
commit
8b796e0c94
2 changed files with 2 additions and 2 deletions
|
@ -770,7 +770,7 @@ class Image
|
|||
*/
|
||||
public function getBlurHash(): string
|
||||
{
|
||||
$image = New Image($this->asString(), $this->getType(), $this->filename, false);
|
||||
$image = clone($this);
|
||||
if (empty($image) || !$this->isValid()) {
|
||||
return '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue