diff options
| author | czaks <marcin@6irc.net> | 2013-08-04 23:31:53 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-04 23:31:53 -0400 |
| commit | 06d2dafa2a8eac89acc81103bfb48196d1ba7ba3 (patch) | |
| tree | e1e2150960239a1f4a2fcdd39b166df7f67adf62 /post.php | |
| parent | c669b087fab8299b7c8b3c1abe4643f4910d56d9 (diff) | |
| parent | f1e3c53d8d504cfd2ad34b948462f0486c02cc65 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -454,7 +454,7 @@ if (isset($_POST['delete'])) { // Currently only works with the 'convert' option selected but it could easily be expanded to work with the rest if you can be bothered. if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['use_exiftool']) && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg')))) { if (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) { - $exif = exif_read_data($upload); + $exif = @exif_read_data($upload); $gm = in_array($config['thumb_method'], array('gm', 'gm+gifsicle')); if (isset($exif['Orientation']) && $exif['Orientation'] != 1) { if ($config['convert_manual_orient']) { @@ -530,7 +530,7 @@ if (isset($_POST['delete'])) { if ($config['redraw_image'] || (!@$post['exif_stripped'] && $config['strip_exif'] && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg'))) { if (!$config['redraw_image'] && $config['use_exiftool']) { - if($error = shell_exec_error('exiftool -q -all= ' . escapeshellarg($upload))) + if($error = shell_exec_error('exiftool -ignoreMinorErrors -q -q -all= ' . escapeshellarg($upload))) error('Could not strip EXIF metadata!', null, $error); } else { $image->to($post['file']); |
