diff options
Diffstat (limited to 'inc/image.php')
| -rw-r--r-- | inc/image.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/inc/image.php b/inc/image.php index 8c9e380e..7aea9bfe 100644 --- a/inc/image.php +++ b/inc/image.php @@ -175,6 +175,9 @@ class ImageImagick extends ImageBase { } } public function to($src) { + if ($config['strip_exif']) { + $this->image->stripImage(); + } if (preg_match('/\.gif$/i', $src)) $this->image->writeImages($src, true); else @@ -245,9 +248,14 @@ class ImageConvert extends ImageBase { } } public function to($src) { + global $config; + if (!$this->temp) { - // $config['redraw_image'] - shell_exec('convert ' . escapeshellarg($this->src) . ' ' . escapeshellarg($src)); + if ($config['strip_exif']) { + shell_exec('convert ' . escapeshellarg($this->src) . ' -strip ' . escapeshellarg($src)); + } else { + shell_exec('convert ' . escapeshellarg($this->src) . ' ' . escapeshellarg($src)); + } } else { rename($this->temp, $src); chmod($src, 0664); |
