discuz 生成缩络图的函数代码
<?php
define(”op_to_file”, 1); // output to file
define(”op_output”, 2); // output to browser
define(”op_not_keep_scale”, 4); // free scale
define(”op_best_resize_width”, 8); // scale to width
define(”op_best_resize_height”, 16); // scale to height
define(”cm_default”,0); // clipping method: default
define(”cm_left_or_top”,1); // clipping method: left or top
define(”cm_middle”,2); // clipping method: middle
define(”cm_right_or_bottom”,3); // clipping method: right or bottom
/**
* vxresize
*
* @param string $srcfile source file
* @param string $srcfile destination [...]
