* deploy fix
* thumb size changed
This commit is contained in:
parent
23ad3132c3
commit
7283d6eefb
@ -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()
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user