mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
문서의 썸네일 생성 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4335 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
92d7bea780
commit
379f3f4758
2 changed files with 4 additions and 4 deletions
|
|
@ -227,8 +227,8 @@
|
|||
* @brief 특정 이미지 파일을 특정 위치로 옮김 (옮길때 이미지의 크기를 리사이징할 수 있음..)
|
||||
**/
|
||||
function createImageFile($source_file, $target_file, $resize_width = 0, $resize_height = 0, $target_type = '', $thumbnail_type = 'crop') {
|
||||
$source_file = FileHandler::getRequestUri($source_file);
|
||||
$target_file = FileHandler::getRequestUri($target_file);
|
||||
$source_file = FileHandler::getRealPath($source_file);
|
||||
$target_file = FileHandler::getRealPath($target_file);
|
||||
|
||||
if(!file_exists($source_file)) return;
|
||||
if(!$resize_width) $resize_width = 100;
|
||||
|
|
|
|||
|
|
@ -444,8 +444,8 @@
|
|||
}
|
||||
|
||||
// 문서의 이미지 첨부파일 위치를 구함
|
||||
$document_path = sprintf('./files/attach/images/%d/%d/',$this->get('module_srl'), $this->get('document_srl'));
|
||||
if(!is_dir($document_path)) FileHandler::makeDir($document_path);
|
||||
$document_path = sprintf("./files/attach/images/%s/%s", $this->get('module_srl'), getNumberingPath($this->get('document_srl'),3));
|
||||
if(!is_dir($document_path)) return;
|
||||
|
||||
// 썸네일 임시 파일명을 구함
|
||||
if($width != $height) $thumbnail_file = sprintf('%sthumbnail_%dx%d_%s.jpg', $document_path, $width, $height, $thumbnail_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue