ImageTypeCreator.php
public static function from($path)
    {
        switch( self::getFileExtension($path) )
        {
            case 'png' : return imagecreatefrompng($path);
            case 'gif' : return imagecreatefromgif($path);
            case 'jpg' :
            case 'jpeg':
            default    : return imagecreatefromjpeg($path);
        }
    }
public static function from($path)
    {
        switch( self::getFileExtension($path) )
        {
            case 'png' : return imagecreatefrompng($path);
            case 'gif' : return imagecreatefromgif($path);
            case 'jpg' :
            case 'jpeg':
            default    : return imagecreatefromjpeg($path);
        }
    }
public static function from ( $ path ) { switch ( self :: getFileExtension ( $ path ) ) { case 'png' : return imagecreatefrompng ( $ path ) ; case 'gif' : return imagecreatefromgif ( $ path ) ; case 'jpg' : case 'jpeg' : default : return imagecreatefromjpeg ( $ path ) ; } }
Image create from
Image create from