ability to adjust thumbnail size for OP images independently from reply images
This commit is contained in:
parent
ce053197cc
commit
c8d1f1cdd4
@ -340,9 +340,12 @@
|
|||||||
* ====================
|
* ====================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// For resizing, max values
|
// For resizing, max thumbnail size
|
||||||
$config['thumb_width'] = 255;
|
$config['thumb_width'] = 255;
|
||||||
$config['thumb_height'] = 255;
|
$config['thumb_height'] = 255;
|
||||||
|
// Max thumbnail size for thread images
|
||||||
|
$config['thumb_op_width'] = 255;
|
||||||
|
$config['thumb_op_height'] = 255;
|
||||||
|
|
||||||
// Thumbnail extension, empty for inherited (png recommended)
|
// Thumbnail extension, empty for inherited (png recommended)
|
||||||
$config['thumb_ext'] = 'png';
|
$config['thumb_ext'] = 'png';
|
||||||
|
7
post.php
7
post.php
@ -527,7 +527,12 @@
|
|||||||
$post['thumbwidth'] = $image->size->width;
|
$post['thumbwidth'] = $image->size->width;
|
||||||
$post['thumbheight'] = $image->size->height;
|
$post['thumbheight'] = $image->size->height;
|
||||||
} else {
|
} 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']);
|
$thumb->to($post['thumb']);
|
||||||
|
|
||||||
$post['thumbwidth'] = $thumb->width;
|
$post['thumbwidth'] = $thumb->width;
|
||||||
|
Loading…
Reference in New Issue
Block a user