diff --git a/encoder/app.php b/encoder/app.php index 16ab5b8..71423c7 100644 --- a/encoder/app.php +++ b/encoder/app.php @@ -48,7 +48,7 @@ if (isset($_POST['submit'])) { continue; } - // 2. Determine target dimensions + $target_width = ($input_name === 'app_logo') ? 128 : 256; $target_height = ($input_name === 'app_logo') ? 128 : 256; @@ -64,7 +64,7 @@ if (isset($_POST['submit'])) { // 5. Preserve transparency for PNG imagealphablending($dst_img, false); - imagesavealpha($png_alpha = $dst_img, true); + imagesavealpha($dst_img, true); $transparent = imagecolorallocatealpha($dst_img, 255, 255, 255, 127); imagefill($dst_img, 0, 0, $transparent); @@ -103,6 +103,8 @@ if (isset($_POST['submit'])) { $text_fields = [ 'channel_name', 'office_address', + 'office_address_1', + 'office_address_2', 'contact_details', 'enforcement_officer', 'eo_contact_details', @@ -169,7 +171,7 @@ include 'header.php';