diff --git a/encoder/image.php b/encoder/image.php index ad2f499..a833901 100644 --- a/encoder/image.php +++ b/encoder/image.php @@ -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($destination); + $filename = basename($pad_destination); $secondary_destination = $secondary_dir . $filename; if (!@copy($destination, $secondary_destination)) { @@ -153,9 +153,7 @@ include 'header.php';