This commit is contained in:
Devdatt Bhatt 2026-06-05 05:12:00 +00:00
parent 2e34cfae00
commit 8251796b76
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,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($pad_destination);
$filename = basename($destination);
$secondary_destination = $secondary_dir . $filename;
if (!@copy($destination, $secondary_destination)) {