<?php 
/**
 * 定义接口 - 需要实现的图片处理方式
 */
interface Util_Image_Interface
{
    public function thumbnail($w, $h, $fit = true);
    
    public function resize($w, $h, $fit = true);
        
    public function paste($w, $h, $bg = '#FFFFFF');
    
    public function crop($w, $h, $x = 0, $y = 0);
    
    public function autoCrop($w, $h);
    
    public function customCrop($w, $h);
    
    public function waterfallCrop($w, $h);
}