forked from leftypol/leftypol
post.php: skip resize only if already stripped
This commit is contained in:
parent
c1c20bdab2
commit
d224c0af23
1 changed files with 1 additions and 0 deletions
1
post.php
1
post.php
|
@ -1402,6 +1402,7 @@ function handle_post(Context $ctx)
|
|||
$file['thumbwidth'] = $size[0];
|
||||
$file['thumbheight'] = $size[1];
|
||||
} elseif (
|
||||
(($config['strip_exif'] && $file['exif_stripped']) || !$config['strip_exif']) &&
|
||||
$image->size->width <= $config['thumb_width'] &&
|
||||
$image->size->height <= $config['thumb_height'] &&
|
||||
$file['extension'] == ($config['thumb_ext'] ? $config['thumb_ext'] : $file['extension'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue