1. Go to this page and download the library: Download noerd/media library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// config/media.php
'variants' => [
'web' => 1920, // name => maximum width in pixels
'teaser' => 640,
],
'variant_quality' => 82,
'variant_max_pixels' => 40_000_000, // larger images are delivered as the original