PHP warning

imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file

/home/www/ecelebrity.ru/protected/extensions/phpThumb/GdThumb.inc.php(111)

099         
100         if ($this->isDataStream === false)
101         {
102             $this->verifyFormatCompatiblity();
103         }
104         
105         switch ($this->format)
106         {
107             case 'GIF':
108                 $this->oldImage = imagecreatefromgif($this->fileName);
109                 break;
110             case 'JPG':
111                 $this->oldImage = imagecreatefromjpeg($this->fileName);
112                 break;
113             case 'PNG':
114                 $this->oldImage = imagecreatefrompng($this->fileName);
115                 break;
116             case 'STRING':
117                 $this->oldImage = imagecreatefromstring($this->fileName);
118                 break;
119         }
120     
121         $this->currentDimensions = array
122         (
123             'width'     => imagesx($this->oldImage),

Stack Trace

#0
+
 /home/www/ecelebrity.ru/protected/extensions/phpThumb/GdThumb.inc.php(111): imagecreatefromjpeg("/home/www/ecelebrity.ru/img/gallery/19e325b050ab4029b8bc3d3a8c07...")
106         {
107             case 'GIF':
108                 $this->oldImage = imagecreatefromgif($this->fileName);
109                 break;
110             case 'JPG':
111                 $this->oldImage = imagecreatefromjpeg($this->fileName);
112                 break;
113             case 'PNG':
114                 $this->oldImage = imagecreatefrompng($this->fileName);
115                 break;
116             case 'STRING':
#1
+
 /home/www/ecelebrity.ru/protected/extensions/phpThumb/PhpThumbFactory.php(127): GdThumb->__construct("/home/www/ecelebrity.ru/img/gallery/19e325b050ab4029b8bc3d3a8c07...", array("jpegQuality" => 80), false)
122         
123         // attempt to load the default implementation
124         if ($pt->isValidImplementation(self::$defaultImplemenation))
125         {
126             $imp = $implementationMap[self::$defaultImplemenation];
127             $toReturn = new $imp($filename, $options, $isDataStream);
128         }
129         // load the gd implementation if default failed
130         else if ($pt->isValidImplementation('gd'))
131         {
132             $imp = $implementationMap['gd'];
#2
+
 /home/www/ecelebrity.ru/protected/components/ImageHelper.php(56): PhpThumbFactory::create("/home/www/ecelebrity.ru/img/gallery/19e325b050ab4029b8bc3d3a8c07...", array("jpegQuality" => 80))
51 
52         if (!file_exists($thumb_path . $thumb_name) || filemtime($thumb_path . $thumb_name) < filemtime($img)) {
53 
54             Yii::import('ext.phpThumb.PhpThumbFactory');
55             $options = array('jpegQuality' => $quality);
56             $thumb = PhpThumbFactory::create($img, $options);
57             $thumb->{$method}($width, $height);
58             $thumb->save($thumb_path . $thumb_name);
59         }
60 
61         $relative_path = str_replace(YiiBase::getPathOfAlias('webroot'), '', $thumb_path . $thumb_name);
2024-03-29 18:08:54 nginx/1.8.1 Yii Framework/1.1.10