mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Merge pull request #35 from SoneYours/develop
외부 이미지의 크기가 작을 경우 섬네일을 생성하지 않는 문제점 개선
This commit is contained in:
commit
c40a5d7557
1 changed files with 8 additions and 2 deletions
|
|
@ -910,8 +910,14 @@ class documentItem extends Object
|
||||||
if(!file_exists($tmp_file)) continue;
|
if(!file_exists($tmp_file)) continue;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
list($_w, $_h, $_t, $_a) = @getimagesize($tmp_file);
|
if($is_img = @getimagesize($tmp_file))
|
||||||
if($_w<$width || $_h<$height) continue;
|
{
|
||||||
|
list($_w, $_h, $_t, $_a) = $is_img;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$source_file = $tmp_file;
|
$source_file = $tmp_file;
|
||||||
$is_tmp_file = true;
|
$is_tmp_file = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue