From c47511d8f7a3966ceb4b514446d28c3022f2dec5 Mon Sep 17 00:00:00 2001 From: Devdatt Bhatt Date: Thu, 21 May 2026 14:46:48 +0000 Subject: [PATCH] image updtaes --- encoder/image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/image.php b/encoder/image.php index 1409102..b822633 100644 --- a/encoder/image.php +++ b/encoder/image.php @@ -93,7 +93,7 @@ if (isset($_POST['submit']) || isset($_POST['display'])) { // 7. Save to primary destination with compression (level 7) if (imagepng($dst_img, $destination, 7)) { - $filename = basename($to_destination); + $filename = basename($destination); $secondary_destination = $secondary_dir . $filename; if (!@copy($destination, $secondary_destination)) {