1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Fix for admin-ui preview image size.

This commit is contained in:
Cameron 2020-12-07 09:24:49 -08:00
parent 8d7ccbc294
commit 111cad6307
3 changed files with 9 additions and 2 deletions

View File

@ -228,7 +228,7 @@ class e_thumbnail
$fname = e107::getParser()->thumbCacheFile($this->_src_path, $options);
$cache_filename = e_CACHE_IMAGE . $fname;
$this->sendCachedImage($cache_filename, $thumbnfo);
// $this->sendCachedImage($cache_filename, $thumbnfo);
// No Cached file found - proceed with image creation.
@ -273,7 +273,7 @@ class e_thumbnail
});
}
elseif(!empty($this->_request['ah']))
elseif(!empty($this->_request['ah']) || !empty($this->_request['aw']))
{
$img->fit(vartrue($this->_request['aw'], null), vartrue($this->_request['ah'], null), null, 'top');
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -142,6 +142,13 @@
'h' => 0,
// 'c' => 'r', // crop right
),
15 => array (
'src' => 'e_PLUGIN/gallery/images/butterfly.jpg',
'aw' => 80,
'ah' => 0,
// 'c' => 'r', // crop right
),
);