Contact - Attachments: Preserve image transparency, large viewing on edit page, other minor adjustments.

This commit is contained in:
fusionate
2024-09-27 11:56:38 -06:00
parent afa0b91b15
commit 9ebf0f7bca
3 changed files with 22 additions and 18 deletions
+2
View File
@@ -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();