diff options
| author | ilotterytea <iltsu@alright.party> | 2025-06-08 03:05:14 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-06-08 03:05:14 +0400 |
| commit | 2e6a74c3fea5ee7c18d97e19dfade945295b851f (patch) | |
| tree | 9f1f7a1cc4bb4046509e65ee230868d2618505bd /lib/file.php | |
| parent | 3985f082a08cbfa917f9f6376d04d1910100fb90 (diff) | |
feat: strip exif data
Diffstat (limited to 'lib/file.php')
| -rw-r--r-- | lib/file.php | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
