/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/drivers/Image_GD.php(133)
121 /** 122 * Loads an image into GD. 123 * 124 * @return void 125 */ 126 protected function _load_image() 127 { 128 if (!is_resource($this->_image)) { 129 // Gets create function 130 $create = $this->_create_function; 131 132 // Open the temporary image 133 $this->_image = $create($this->file); 134 135 // Preserve transparency when saving 136 imagesavealpha($this->_image, TRUE); 137 } 138 } 139 140 /** 141 * Execute a resize. 142 * 143 * @param integer $width new width 144 * @param integer $height new height 145 * @return void
#0 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/drivers/Image_GD.php(133): imagecreatefromjpeg("/var/www/vhosts/muratgedik.com.tr/httpdocs/images/press/13986960...") 128 if (!is_resource($this->_image)) { 129 // Gets create function 130 $create = $this->_create_function; 131 132 // Open the temporary image 133 $this->_image = $create($this->file); 134 135 // Preserve transparency when saving 136 imagesavealpha($this->_image, TRUE); 137 } 138 } |
#1 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/drivers/Image_GD.php(154): Image_GD->_load_image() 149 // Presize width and height 150 $pre_width = $this->width; 151 $pre_height = $this->height; 152 153 // Loads image if not yet loaded 154 $this->_load_image(); 155 156 // Test if we can do a resize without resampling to speed up the final resize 157 if ($width > ($this->width / 2) AND $height > ($this->height / 2)) { 158 // The maximum reduction is 10% greater than the final size 159 $reduction_width = round($width * 1.1); |
#2 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/drivers/Image.php(235): Image_GD->_do_resize(500, 691) 230 231 // Convert the width and height to integers, minimum value is 1px 232 $width = max(round($width), 1); 233 $height = max(round($height), 1); 234 235 $this->_do_resize($width, $height); 236 237 return $this; 238 } 239 240 /** |
#3 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/EasyImage.php(330): Image->resize(500, "", null) 325 * because it uses a design pattern "factory". 326 */ 327 328 public function resize($width = NULL, $height = NULL, $master = NULL) 329 { 330 return $this->image()->resize($width, $height, $master); 331 } 332 333 public function crop($width, $height, $offset_x = NULL, $offset_y = NULL) 334 { 335 return $this->image()->crop($width, $height, $offset_x, $offset_y); |
#4 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/EasyImage.php(390): EasyImage->resize(500, "") 385 * @param $width 386 * @param $height 387 */ 388 public function resizeAndcrop($width,$height){ 389 if($this->_image->width < $this->_image->height){ 390 $this->resize($width,''); 391 $this->crop($width,$height); 392 } 393 else { 394 $this->resize('',$height); 395 $this->crop($width,$height); |
#5 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/EasyImage.php(176): EasyImage->resizeAndcrop(500, 500) 171 throw new CException('Params "width" and "height" is required for action "' . $key . '"'); 172 } 173 $this->resizeAndcrop( 174 $value['width'], 175 $value['height'] 176 ); 177 break; 178 case 'rotate': 179 if (is_array($value)) { 180 if (!isset($value['degrees'])) { 181 throw new CException('Param "degrees" is required for action "' . $key . '"'); |
#6 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/extensions/easyimage/EasyImage.php(288): EasyImage->_doThumbOf(Image_GD, "/var/www/vhosts/muratgedik.com.tr/httpdocs/assets/easyimage/0/01...", array("resizeAndcrop" => array("width" => 500, "height" => 500))) 283 return false; 284 } 285 $image = Image::factory($this->detectPath($file), $this->driver); 286 $originWidth = $image->width; 287 $originHeight = $image->height; 288 $result = $this->_doThumbOf($image, $cacheFile, $params); 289 unset($image); 290 291 // Same for high-resolution image 292 if ($this->retinaSupport && $result) { 293 if ($this->image()->width * 2 <= $originWidth && $this->image()->height * 2 <= $originHeight) { |
#7 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/views/site/press.php(13): EasyImage->thumbSrcOf("/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/../images/p...", array("resizeAndcrop" => array("width" => 500, "height" => 500))) 08 $architecturals=Press::model()->findAllByAttributes(array('id_subtype_pr'=>$_GET['type']),array('order'=>'id DESC')); 09 foreach($architecturals as $object){?> 10 <div class="col-lg-4 col-sm-4 col-xs-12 image"> 11 <a href="<?php echo yii::app()->request->baseUrl.'/images/press/'.$object->image;?>"> 12 <img src="<?php echo Yii::app()->easyImage->thumbSrcOf(yii::app()->basePath.'/../images/press/'.$object->image, 13 array('resizeAndcrop' => array('width' => 500, 'height' => 500))); 14 ?>"> 15 </a> 16 </div> 17 <?php } 18 |
#8 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CBaseController.php(126): require("/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/views/site/...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#9 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CBaseController.php(95): CBaseController->renderInternal("/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/views/site/...", null, true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#10 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CController.php(869): CBaseController->renderFile("/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/views/site/...", null, true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
#11 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CController.php(782): CController->renderPartial("press", null, true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
#12 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/protected/controllers/SiteController.php(70): CController->render("press") 65 } 66 public function actionPress() 67 { 68 // renders the view file 'protected/views/site/index.php' 69 // using the default layout 'protected/views/layouts/main.php' 70 $this->render('press'); 71 } 72 public function actionArchitectural() 73 { 74 // renders the view file 'protected/views/site/index.php' 75 // using the default layout 'protected/views/layouts/main.php' |
#13 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/actions/CInlineAction.php(49): SiteController->actionPress() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#14 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CController.php(308): CInlineAction->runWithParams(array("type" => "14")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#15 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#16 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#17 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CWebApplication.php(282): CController->run("press") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#18 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/web/CWebApplication.php(141): CWebApplication->runController("site/press/type/14") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#19 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/yii-1.1.14/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#20 |
+
–
/var/www/vhosts/muratgedik.com.tr/httpdocs/index.php(14): CApplication->run() 09 defined('YII_DEBUG') or define('YII_DEBUG',true); 10 // specify how many levels of call stack should be shown in each log message 11 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 12 13 require_once($yii); 14 Yii::createWebApplication($config)->run(); |