From 2e6a74c3fea5ee7c18d97e19dfade945295b851f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 8 Jun 2025 03:05:14 +0400 Subject: feat: strip exif data --- lib/file.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/file.php b/lib/file.php index d8f740e..fe7dae1 100644 --- a/lib/file.php +++ b/lib/file.php @@ -34,4 +34,11 @@ function delete_file(string $file_id, string $file_extension): bool } return true; +} + +function strip_exif(string $file_path) +{ + $file_path = escapeshellarg($file_path); + $output = shell_exec("exiftool -q -EXIF= $file_path $file_path"); + return empty($output); } \ No newline at end of file -- cgit v1.2.3