From c8d1f1cdd4439933f9bd4a451ec73b26d21b97d8 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 14 Mar 2012 02:44:33 +1100 Subject: ability to adjust thumbnail size for OP images independently from reply images --- post.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'post.php') diff --git a/post.php b/post.php index adb98734..1f20b49d 100644 --- a/post.php +++ b/post.php @@ -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; -- cgit v1.3