src/Helpers/ImageFilename.php
public static function ExtendOptions(array $options = [])
    {
        $options = array_merge( [
            'width'=>null,
            'height'=>null,

            'focusX'=>0,
            'focusY'=>0,

            'resize'=>false,
        ], $options );

        // Format to strings
        $options['width'] = $options['width'] ?: '_';
        $options['height'] = $options['height'] ?: '_';

        return $options;
    }
public static function ExtendOptions(array $options = [])
    {
        $options = array_merge( [
            'width'=>null,
            'height'=>null,

            'focusX'=>0,
            'focusY'=>0,

            'resize'=>false,
        ], $options );

        // Format to strings
        $options['width'] = $options['width'] ?: '_';
        $options['height'] = $options['height'] ?: '_';

        return $options;
    }
public static function ExtendOptions ( array $ options = [ ] ) { $ options = array_merge ( [ 'width' => null , 'height' => null , 'focusX' => 0 , 'focusY' => 0 , 'resize' => false , ] , $ options ) ; // Format to strings $ options [ 'width' ] = $ options [ 'width' ] ? : '_' ; $ options [ 'height' ] = $ options [ 'height' ] ? : '_' ; return $ options ; }
Extend and prepare options

@return string
Extend and prepare options