Cree un sistema de tumbails el problema esque este cuando sube la foto me crea un margen negro en la parte inferior y no pone la imagen por completo si me podrian ayudar a encontrar el problema se los agradeseria.
    
Código PHP:
Ver original- function createFrom(){ 
-         if($this->ext == "jpg"  || $this->ext == "jpeg"){ 
-         }else if($this->ext == "gif"){ 
-         }else if($this->ext == "png"){ 
-         } 
-         return false; 
-     } 
- function resize($nwidth,$nheight = false){  
- //     $rname = $this->dir."r".microtime(true).".png"; 
-         $image = $this->createFrom();         
-         //var_dump($image); 
-          
-         if(!$nheight){ 
-             $nwidth = $nwidth; 
-             $nheight = round($height % $nwidth); 
-         } 
-         return $rname;  
-     }