Settings within the theme:
Configure::write(
'theme.image-sizes',
[
'rel_teaser_box' => [
'width' => 600,
'height' => 500,
'crop' => true,
'upscale' => true,
],
'product_image_thumbs' => [
'width' => 400,
'height' => 400,
'crop' => true,
'upscale' => true,
],
]
);
Call within twig template:
{{ slide.product_productImages_image.sizes.product_image_thumbs | print_r }}
or
{{ slide.product_productImages_image.getThemeSized('product_image_thumbs') | print_r }}
returns:
"http://localhost:4000/uploads/2020/04/Biryani-Rezepet-Huhn-Indien-1920x1080-1-mobile-crop-400x400.jpg" (100)
in .../sloth/src/View/Extensions/SlothTwigExtension.php:99
Calling the image itself return the following error:
Class 'League\Glide\ServerFactory' not found

Settings within the theme:
Call within twig template:
or
returns:
Calling the image itself return the following error:
Class 'League\Glide\ServerFactory' not found