Automation init...4
This commit is contained in:
parent
2d41c92d98
commit
1893200123
@ -120,7 +120,9 @@ class Storage extends FileStorage
|
||||
|
||||
private function create_small_image(BoardEntity $board_entity, $target_name = "small", int $width = 480, int $height = 319): void
|
||||
{
|
||||
$fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
||||
$fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
||||
var_dump($fileInfo);
|
||||
exit;
|
||||
$target_file_name = sprintf("%s_%s.%s", $fileInfo['filename'], $target_name, $fileInfo['extension']);
|
||||
if (!$this->isFileType_FileTrait($fileInfo['extension'])) {
|
||||
throw new \Exception("{$this->getOriginName()} Image 형식파일이 아닙니다.");
|
||||
@ -150,6 +152,6 @@ class Storage extends FileStorage
|
||||
//File DB에 넣기
|
||||
$this->create_file($boards_entity, $board_entity, $board_table);
|
||||
//작은이미지 만들기
|
||||
$this->create_small_image($board_entity, $this);
|
||||
$this->create_small_image($board_entity);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user