diff options
Diffstat (limited to 'lib')
| -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 |
