src/Lib/ImageTransform.php
public function processThumbnails(array $config)
    {
        $thumbnailPaths = [];
        if (!isset($config['thumbnailSizes'])) {
            return $thumbnailPaths;
        }

        foreach ($config['thumbnailSizes'] as $prefix => $thumbnailConfig) {
            $method = 'gd';
            if (!empty($config['thumbnailMethod'])) {
                $method = $config['thumbnailMethod'];
            }

            $this->ImageManager = new ImageManager(['driver' => $method]);

            $thumbnailPaths[] = $this->makeThumbnail($prefix, $thumbnailConfig);
        }

        return $thumbnailPaths;
    }
public function processThumbnails(array $config)
    {
        $thumbnailPaths = [];
        if (!isset($config['thumbnailSizes'])) {
            return $thumbnailPaths;
        }

        foreach ($config['thumbnailSizes'] as $prefix => $thumbnailConfig) {
            $method = 'gd';
            if (!empty($config['thumbnailMethod'])) {
                $method = $config['thumbnailMethod'];
            }

            $this->ImageManager = new ImageManager(['driver' => $method]);

            $thumbnailPaths[] = $this->makeThumbnail($prefix, $thumbnailConfig);
        }

        return $thumbnailPaths;
    }
public function processThumbnails ( array $ config ) { $ thumbnailPaths = [ ] ; if ( ! isset ( $ config [ 'thumbnailSizes' ] ) ) { return $ thumbnailPaths ; } foreach ( $ config [ 'thumbnailSizes' ] as $ prefix => $ thumbnailConfig ) { $ method = 'gd' ; if ( ! empty ( $ config [ 'thumbnailMethod' ] ) ) { $ method = $ config [ 'thumbnailMethod' ] ; } $ this -> ImageManager = new ImageManager ( [ 'driver' => $ method ] ) ; $ thumbnailPaths [ ] = $ this -> makeThumbnail ( $ prefix , $ thumbnailConfig ) ; } return $ thumbnailPaths ; }
Take an upload fields configuration and create all the thumbnails

@param array $config The upload fields configuration
@return array
Take an upload fields configuration and create all the thumbnails