From 7283d6eefbe7f58f9316c3bea70b714040c06645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danyi=20D=C3=A1vid?= Date: Sun, 8 Jul 2018 21:43:35 +0200 Subject: [PATCH] * deploy fix * thumb size changed --- deploy.php | 2 +- src/App/Service/GalleryService.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.php b/deploy.php index d95f420..309a249 100644 --- a/deploy.php +++ b/deploy.php @@ -21,7 +21,7 @@ set('writable_dirs', []); set('keep_releases', 3); set('default_stage', 'production'); -host('alfheim.ragnarok.yvan.hu', 22) +host('alfheim.ragnarok.yvan.hu') ->stage('production') ->user('yvan') ->forwardAgent() diff --git a/src/App/Service/GalleryService.php b/src/App/Service/GalleryService.php index 2dc5f8e..e42e750 100644 --- a/src/App/Service/GalleryService.php +++ b/src/App/Service/GalleryService.php @@ -17,7 +17,7 @@ class GalleryService const CONFIG_FILE = 'data/galleries/config.yaml'; const IMAGE_BASEDIR = 'data/galleries/%s/'; const EXPORT_DIR = 'data/export/'; - const THUMBNAIL_SIZE = 500; + const THUMBNAIL_SIZE = 750; protected $contentTypeMap = [ 'jpg' => 'image/jpeg', @@ -160,6 +160,7 @@ class GalleryService } private function ensureThumbnailExists(string $dir, string $imageName) { + set_time_limit(30); $imageDir = $this->getImageDir($dir); $thumbPath = $imageDir . "thumb_" . self::THUMBNAIL_SIZE; @mkdir($thumbPath);