Merge branch 'feature/456' of https://github.com/tainacan/tainacan into feature/456
This commit is contained in:
commit
b1c5f8af1b
|
@ -144,7 +144,9 @@ class Item extends Entity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function get_iamge_blurhash($file_path, $width, $height) {
|
private function get_iamge_blurhash($file_path, $width, $height) {
|
||||||
$image = imagecreatefromstring(file_get_contents($file_path));
|
if (!$image = @imagecreatefromstring(file_get_contents($file_path))) {
|
||||||
|
return "L2OzSs00j[_3D%xuWBt700_3IU%M";
|
||||||
|
}
|
||||||
if($image == false)
|
if($image == false)
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue