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:
parent
8d7ccbc294
commit
111cad6307
@ -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');
|
||||
}
|
||||
|
BIN
e107_tests/tests/_data/thumbnailTest/image_15.jpg
Normal file
BIN
e107_tests/tests/_data/thumbnailTest/image_15.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
@ -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
|
||||
),
|
||||
|
||||
|
||||
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user