diff --git a/app/contacts/contact_attachment_edit.php b/app/contacts/contact_attachment_edit.php index 846318c596..23642505a0 100644 --- a/app/contacts/contact_attachment_edit.php +++ b/app/contacts/contact_attachment_edit.php @@ -109,6 +109,8 @@ if (in_array($attachment_extension, $image_extensions)) { //create the image object from the content string $image = imagecreatefromstring($attachment_content); + imagealphablending($image, FALSE); + imagesavealpha($image, TRUE); //start output buffering to capture the image data ob_start(); diff --git a/app/contacts/contact_attachments_view.php b/app/contacts/contact_attachments_view.php index 645f65dc29..197761a30f 100644 --- a/app/contacts/contact_attachments_view.php +++ b/app/contacts/contact_attachments_view.php @@ -55,7 +55,7 @@ echo "\n"; + echo "
\n"; + } + //show the content echo "