app/Image/DefaultFilter.php
/**
     * "resize" command
     *
     * It overrides the 'resize' command to set the contraints.
     */
"resize" command
It overrides the 'resize' command to set the contraints.
" resize " command It overrides the ' resize ' command to set the contraints .
public function resize(Image $image, array $args)
    {
        if (empty($args[1])) {
            $args[1] = null;
        }
        $image->resize($args[0], $args[1], function($constraint) {
            $constraint->aspectRatio();
            $constraint->upsize();
        });
    }
public function resize ( Image $ image , array $ args ) { if ( empty ( $ args [ 1 ] ) ) { $ args [ 1 ] = null ; } $ image -> resize ( $ args [ 0 ] , $ args [ 1 ] , function ( $ constraint ) { $ constraint -> aspectRatio ( ) ; $ constraint -> upsize ( ) ; } ) ; }
"resize" command
 It overrides the 'resize' command to set the contraints.
" resize " command It overrides the ' resize ' command to set the contraints .