From 1893200123a4b15038e104c6616ea297529ff72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 24 Sep 2024 17:17:09 +0900 Subject: [PATCH] Automation init...4 --- app/Libraries/MyMangboard/Storage.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Libraries/MyMangboard/Storage.php b/app/Libraries/MyMangboard/Storage.php index 69c08c5..74d5c17 100644 --- a/app/Libraries/MyMangboard/Storage.php +++ b/app/Libraries/MyMangboard/Storage.php @@ -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); } }