Fatal Error

Allowed memory size of 268435456 bytes exhausted (tried to allocate 68820 bytes)

Source file

File: /var/www/kreatura/data/www/watchdeluxe.sk/www/libs/ml/MLImageResizer.class.php   Line: 62

Line 55:            return file_exists(WWW_DIR.'/'.$this->cachePath.'cache'.DIRECTORY_SEPARATOR.'images'.DIRECTORY_SEPARATOR.$this->resolution);
Line 56:        }
Line 57:    
Line 58:        protected function resize($savePath){
Line 59:            // samotna magie resizovani
Line 60:            $inputInfo=@getimagesize($this->path);
Line 61:            if((is_array($inputInfo)) and (($inputInfo[2]==IMAGETYPE_PNG) or ($inputInfo[2]==IMAGETYPE_JPEG) or ($inputInfo[2]==IMAGETYPE_GIF))){
Line 62:                $inputImage=imagecreatefromstring(file_get_contents($this->path));
Line 63:                // je zadan aspon jeden rozmerovy parametr
Line 64:                $newWidth=0;
Line 65:                $newHeight=0;
Line 66:                $inputAspect=$inputInfo[0]/$inputInfo[1];
Line 67:                // rozdelime to podle poctu rozmerovych parametru
Line 68:                if(($this->width) and ($this->height)){
Line 69:                    // jsou oba

Call stack

  1. <PHP inner-code> Debug:: _shutdownHandler ()

Nette Application

Environment

HTTP request

HTTP response