mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Fix for admin-ui preview image size.
This commit is contained in:
@@ -228,7 +228,7 @@ class e_thumbnail
|
|||||||
$fname = e107::getParser()->thumbCacheFile($this->_src_path, $options);
|
$fname = e107::getParser()->thumbCacheFile($this->_src_path, $options);
|
||||||
$cache_filename = e_CACHE_IMAGE . $fname;
|
$cache_filename = e_CACHE_IMAGE . $fname;
|
||||||
|
|
||||||
$this->sendCachedImage($cache_filename, $thumbnfo);
|
// $this->sendCachedImage($cache_filename, $thumbnfo);
|
||||||
|
|
||||||
// No Cached file found - proceed with image creation.
|
// 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');
|
$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,
|
'h' => 0,
|
||||||
// 'c' => 'r', // crop right
|
// 'c' => 'r', // crop right
|
||||||
),
|
),
|
||||||
|
15 => array (
|
||||||
|
'src' => 'e_PLUGIN/gallery/images/butterfly.jpg',
|
||||||
|
'aw' => 80,
|
||||||
|
'ah' => 0,
|
||||||
|
// 'c' => 'r', // crop right
|
||||||
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user