diff options
| author | root <root@vichan.6irc.us> | 2013-08-03 21:49:38 -0400 |
|---|---|---|
| committer | root <root@vichan.6irc.us> | 2013-08-03 21:49:38 -0400 |
| commit | 1f5ce14f591522096da7011c1d5f18abb09f03fe (patch) | |
| tree | ec700cb54aa24190fdeffce4e19483c74dc173ff /post.php | |
| parent | d79da75fa9f664d13cc99dc984b53c7b2a06fd5c (diff) | |
| parent | b373b39f44d87a8c1085433c5e848addcf1a8d72 (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -452,7 +452,7 @@ if (isset($_POST['delete'])) { if ($config['convert_auto_orient'] && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg')) { // The following code corrects the image orientation. // 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'] && ($post['extension'] == 'jpg' || $post['extension'] == 'jpeg')))) { + if (!($config['redraw_image'] || (($config['strip_exif'] && !$config['strip_with_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); $gm = in_array($config['thumb_method'], array('gm', 'gm+gifsicle')); @@ -460,6 +460,7 @@ if (isset($_POST['delete'])) { if($error = shell_exec_error(($gm ? 'gm ' : '') . 'convert ' . escapeshellarg($upload) . ' -auto-orient ' . escapeshellarg($upload))) error('Could not auto-orient image!', null, $error); + $size = @getimagesize($upload); } } } |
