diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 02:44:33 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-14 02:44:33 +1100 |
| commit | c8d1f1cdd4439933f9bd4a451ec73b26d21b97d8 (patch) | |
| tree | 640ddaa155d88c731f29dd7c980d17dd2dfb5684 /post.php | |
| parent | ce053197cc19cf5d9d02c138065ffb2b7da7da64 (diff) | |
ability to adjust thumbnail size for OP images independently from reply images
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -527,7 +527,12 @@ $post['thumbwidth'] = $image->size->width; $post['thumbheight'] = $image->size->height; } else { - $thumb = $image->resize($config['thumb_ext'] ? $config['thumb_ext'] : $post['extension'], $config['thumb_width'], $config['thumb_height']); + $thumb = $image->resize( + $config['thumb_ext'] ? $config['thumb_ext'] : $post['extension'], + $OP ? $config['thumb_op_width'] : $config['thumb_width'], + $OP ? $config['thumb_op_height'] : $config['thumb_height'] + ); + $thumb->to($post['thumb']); $post['thumbwidth'] = $thumb->width; |
