|
@@ -44,6 +44,9 @@ class Blurhash {
|
|
|
$pixels[] = $row;
|
|
|
}
|
|
|
|
|
|
+ // Free the allocated GdImage object from memory:
|
|
|
+ imagedestroy($image);
|
|
|
+
|
|
|
$components_x = 4;
|
|
|
$components_y = 4;
|
|
|
$blurhash = BlurhashEngine::encode($pixels, $components_x, $components_y);
|
|
@@ -53,4 +56,4 @@ class Blurhash {
|
|
|
return $blurhash;
|
|
|
}
|
|
|
|
|
|
-}
|
|
|
+}
|