app/maguttiCms/Tools/ImgHelper.php
// constructs a new filename based on args
constructs a new filename based on args
constructs a new filename based on args
private function make_new_name($src, $args)
    {
        $new_name = str_replace(['.', ' '], '_', basename($src));
        $new_name .= (isset($args['w'])) ? '_' . $args['w'] : '_0';
        $new_name .= (isset($args['h'])) ? '_' . $args['h'] : '_0';
        $new_name .= '_' . $this->arg($args, 'c');
        $new_name .= '_' . $this->arg($args, 'q');
        $new_name .= (array_key_exists('filter', $args)) ? '_' . substr(md5(json_encode($this->arg($args, 'filter'))), 0, 8) : '';
        $new_name .= '.' . $this->arg($args, 'format');
        return $new_name;
    }
private function make_new_name ( $ src , $ args ) { $ new_name = str_replace ( [ '.' , ' ' ] , '_' , basename ( $ src ) ) ; $ new_name .= ( isset ( $ args [ 'w' ] ) ) ? '_' . $ args [ 'w' ] : '_0' ; $ new_name .= ( isset ( $ args [ 'h' ] ) ) ? '_' . $ args [ 'h' ] : '_0' ; $ new_name .= '_' . $ this -> arg ( $ args , 'c' ) ; $ new_name .= '_' . $ this -> arg ( $ args , 'q' ) ; $ new_name .= ( array_key_exists ( 'filter' , $ args ) ) ? '_' . substr ( md5 ( json_encode ( $ this -> arg ( $ args , 'filter' ) ) ) , 0 , 8 ) : '' ; $ new_name .= '.' . $ this -> arg ( $ args , 'format' ) ; return $ new_name ; }
constructs a new filename based on args
constructs a new filename based on args