Add attachments 'thumb_width' and 'thumb_height' settings for inline thumbs, defaulting to 100x75.
This is used as the max thumb width/height for oEmbed requests (replacing the old default of 500x400 which was more suitable for the lightbox).
This commit is contained in:
@@ -127,8 +127,8 @@ class MediaFile
|
||||
$outname = File::filename($this->user->getProfile(), 'thumb-' . $this->filename, $this->mimetype);
|
||||
$outpath = File::path($outname);
|
||||
|
||||
$width = 100;
|
||||
$height = 75;
|
||||
$width = common_config('attachments', 'thumb_width');
|
||||
$height = common_config('attachments', 'thumb_height');
|
||||
|
||||
$image->resizeTo($outpath, $width, $height);
|
||||
File_thumbnail::saveThumbnail($this->fileRecord->id,
|
||||
|
Reference in New Issue
Block a user