public static function normalizeAssetTransformToObject($assetTransform): array
    {
        $transformArray = $assetTransform->toArray();
        $validParams = ['width', 'height', 'format', 'mode', 'position', 'interlace', 'quality'];

        $r = [];

        foreach ($validParams as $param) {
            if (isset($transformArray[$param])) {
                $r[$param] = $transformArray[$param];
            }
        }

        return $r;
    }
public static function normalizeAssetTransformToObject($assetTransform): array
    {
        $transformArray = $assetTransform->toArray();
        $validParams = ['width', 'height', 'format', 'mode', 'position', 'interlace', 'quality'];

        $r = [];

        foreach ($validParams as $param) {
            if (isset($transformArray[$param])) {
                $r[$param] = $transformArray[$param];
            }
        }

        return $r;
    }
public static function normalizeAssetTransformToObject ( $ assetTransform ) : array { $ transformArray = $ assetTransform -> toArray ( ) ; $ validParams = [ 'width' , 'height' , 'format' , 'mode' , 'position' , 'interlace' , 'quality' ] ; $ r = [ ] ; foreach ( $ validParams as $ param ) { if ( isset ( $ transformArray [ $ param ] ) ) { $ r [ $ param ] = $ transformArray [ $ param ] ; } } return $ r ; }
Converts a native asset transform object into an Imager transform.

@param AssetTransform $assetTransform
@return array
Converts a native asset transform object into an Imager transform .