mirror of https://github.com/MISP/MISP
chg: [viewPicture] Added comments
parent
303b584c56
commit
dec3fd8808
|
@ -1684,7 +1684,6 @@ class Attribute extends AppModel
|
||||||
} else {
|
} else {
|
||||||
$data = $this->getAttachment($attribute['Attribute']);
|
$data = $this->getAttachment($attribute['Attribute']);
|
||||||
if ($extension == 'gif') {
|
if ($extension == 'gif') {
|
||||||
// $image_data = base64_decode($data);
|
|
||||||
$image_data = $data;
|
$image_data = $data;
|
||||||
} else {
|
} else {
|
||||||
$image = ImageCreateFromString($data);
|
$image = ImageCreateFromString($data);
|
||||||
|
@ -1698,7 +1697,7 @@ class Attribute extends AppModel
|
||||||
imagedestroy($image);
|
imagedestroy($image);
|
||||||
imagedestroy($imageTC);
|
imagedestroy($imageTC);
|
||||||
}
|
}
|
||||||
// save thumbnail
|
// save thumbnail for later reuse
|
||||||
$attribute['Attribute']['data'] = $image_data;
|
$attribute['Attribute']['data'] = $image_data;
|
||||||
$this->saveAttachment($attribute['Attribute'], '_thumbnail');
|
$this->saveAttachment($attribute['Attribute'], '_thumbnail');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue