diff --git a/docker-compose.yaml b/docker-compose.yaml index 1d11bc2..a7fdf7a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -22,6 +22,8 @@ services: - XDEBUG_CLIENT_PORT=9003 - XDEBUG_DISCOVER_CLIENT_HOST=false - PHP_IDE_CONFIG=serverName=orbstack + - php.session.gc_maxlifetime=28800 + - php.session.cookie_lifetime=0 mysql: image: mariadb:10.2.7 diff --git a/module/oc_telegram_shop/upload/oc_telegram_shop/framework/ImageTool/ImageTool.php b/module/oc_telegram_shop/upload/oc_telegram_shop/framework/ImageTool/ImageTool.php index 456341d..57320c2 100755 --- a/module/oc_telegram_shop/upload/oc_telegram_shop/framework/ImageTool/ImageTool.php +++ b/module/oc_telegram_shop/upload/oc_telegram_shop/framework/ImageTool/ImageTool.php @@ -47,7 +47,7 @@ class ImageTool implements ImageToolInterface $image = $this->manager->make($fullOldPath) ->resize($width, $height, function ($constraint) { $constraint->aspectRatio(); - $constraint->upsize(); + // $constraint->upsize(); }) ->resizeCanvas($width, $height, 'center', false, null); diff --git a/module/oc_telegram_shop/upload/oc_telegram_shop/src/Handlers/ProductsHandler.php b/module/oc_telegram_shop/upload/oc_telegram_shop/src/Handlers/ProductsHandler.php index 1cea2da..1857c24 100755 --- a/module/oc_telegram_shop/upload/oc_telegram_shop/src/Handlers/ProductsHandler.php +++ b/module/oc_telegram_shop/upload/oc_telegram_shop/src/Handlers/ProductsHandler.php @@ -57,8 +57,8 @@ class ProductsHandler $mainpageProducts = $params['mainpageProducts']; $languageId = 1; $categoryName = ''; - $imageWidth = 184; - $imageHeight = 245; + $imageWidth = 300; + $imageHeight = 300; if ($categoryId) { $categoryName = $this->queryBuilder->newQuery() @@ -243,6 +243,8 @@ class ProductsHandler $languageId = 1; $imageWidth = 500; $imageHeight = 500; + $imageFullWidth = 1000; + $imageFullHeight = 1000; $product = $this->queryBuilder->newQuery() ->select([ @@ -299,7 +301,7 @@ class ProductsHandler [$width, $height] = $this->ocImageTool->getRealSize($imagePath); $images[] = [ 'thumbnailURL' => $this->ocImageTool->resize($imagePath, $imageWidth, $imageHeight, 'placeholder.png'), - 'largeURL' => $this->ocImageTool->getUrl($imagePath), + 'largeURL' => $this->ocImageTool->resize($imagePath, $imageFullWidth, $imageFullHeight, 'placeholder.png'), 'width' => $width, 'height' => $height, 'alt' => $product['product_name'], diff --git a/spa/src/components/FullScreenImageViewer.vue b/spa/src/components/FullScreenImageViewer.vue index face9b9..8763e57 100644 --- a/spa/src/components/FullScreenImageViewer.vue +++ b/spa/src/components/FullScreenImageViewer.vue @@ -1,11 +1,11 @@