Automation init...4
This commit is contained in:
parent
1893200123
commit
a2129e49ae
@ -120,9 +120,7 @@ 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);
|
||||
var_dump($fileInfo);
|
||||
exit;
|
||||
$fileInfo = pathinfo($this->getFullPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
|
||||
$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 형식파일이 아닙니다.");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user