chg: [viewPicture] Added comments

pull/4441/head
mokaddem 2019-04-09 14:00:36 +02:00
parent 303b584c56
commit dec3fd8808
1 changed files with 1 additions and 2 deletions

View File

@ -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');
} }