unable to open image `/mnt/devel/Atrium/atriumstudio/www_root/files/photos/cache/21e74f7d3f8d196e35d993d584f4458442eb94ee/photo/1024x1024': Prístup odmietnutý @ error/blob.c/OpenBlob/2701
/mnt/devel/Atrium/atriumstudio/vendor/Onion/Assets/Image.php
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
777 }778779 switch ($mime) {780 case 'image/jpeg':781 $this->image->setImageFormat ('jpeg');782 break;783784 case 'image/png':785 $this->image->setImageFormat ('png');786 break;787788 case 'image/gif':789 $this->image->setImageFormat ('gif');790 break;791 }792793 $this->image->setCompressionQuality($this->quality);794 $this->image->setImageCompressionQuality($this->quality);795 $this->image->stripImage();796 $this->image->writeImage($file);797 }798799800 /**801 * Priame odoslanie obrázka802 *803 * @param formát v ktorom sa má obrázok uložiť804 * @return void805 */806 public function send($mime = null)
232 $image->watermark($watermark['file'], $watermark['horizontal_position'], $watermark['vertical_position']);233 }234235 $mime = $image->mime;236 $type = $image->image->getImageType();237 if (238 $mime === 'image/png'239 and ($type === \Imagick::IMGTYPE_TRUECOLOR240 or ($type === \Imagick::IMGTYPE_TRUECOLORMATTE241 and ($image->width > 1280 or $image->height > 1280)242 ))243 ) {244 $mime = 'image/jpeg'; // PNG konvertujeme na jpeg245 }246247 $cachedFileData['mime'] = $mime;248 $cachedFileData['width'] = $image->width;249 $cachedFileData['height'] = $image->height;250251 $image->save($cacheFile, $mime);252253 file_put_contents($cacheFile . '.data', serialize($cachedFileData));254 } else {255 $data = file_get_contents($cacheFile . '.data');256 $cachedFileData = unserialize($data);257 }258259 return $cachedFileData;260 }261
array ( 0 => '/mnt/devel/Atrium/atriumstudio/www_root/files/photos/cache/21e74f7d3f8d196e35d993d584f4458442eb94ee/photo/1024x1024', 1 => 'image/jpeg', )
16 $watermarkMinHeight = (int) $this->services->configuration->getKey('photomanager', 'photos', 'watermark_min_height');1718 if ($watermarkMinWidth <= $width and $watermarkMinHeight <= $height) {19 $watermark['file'] = $watermarkFile;20 $watermark['horizontal_position'] = $this->services->configuration->getKey('photomanager', 'photos', 'watermark_position_horizontal');21 $watermark['vertical_position'] = $this->services->configuration->getKey('photomanager', 'photos', 'watermark_position_vertical');22 }23 }2425 $where = array();26 $where[] = array('file', $file);27 $where[] = array('photos_descriptions.language', $this->services->onionCMS->language['id']);2829 try {30 $photoModel = $this->services->getFactory('photoModel')->create($where);31 } catch (\Onion\Database\ModelException $e) {32 $this->app->notFound(__('Fotografia neexistuje!'));33 }3435 $cachedFileData = $photoModel->createCachedFile($type, $width, $height, $watermark);3637 $this->app->keepFlash();3839 $this->app->response->cacheLifetime = 31536000;40 $this->app->response->addHeader('Content-Type', $cachedFileData['mime']);41 $this->app->response->encoding = null;42 $this->view = file_get_contents($cachedFileData['cache_file']);43 }44 }
array ( 0 => 6, 1 => '1024', 2 => '1024', 3 => array ( ), )
151152 if ($this->actionName === null) {153 $this->actionName = $this->currentRoute->action;154 }155 preg_match('/([A-Za-z0-9]+)Controller/', $this->controllerName, $match);156 if (isset($match[1]) === true) {157 $view->setTemplate(APP_DIR . '/Templates/' . $match[1] . '.html');158 }159160 $this->controller = new $this->controllerName($this->container);161162 $parameters = $this->currentRoute->getResource();163164 $this->runHooks('system.hooks.afterCreateController');165166 call_user_func_array(array($this->controller, 'before'), $parameters);167168 $this->runHooks('system.hooks.beforeControllerRun');169170 call_user_func_array(array($this->controller, $this->actionName), $parameters);171172 $this->runHooks('system.hooks.afterControllerRun');173174 call_user_func_array(array($this->controller, 'after'), $parameters);175176 if (is_object($this->controller->view) === true) {177 $view['flash'] = $this->flash['current'];178179 $this->runHooks('system.hooks.beforeRenderView');180
array ( 0 => array ( 0 => 'object (onionCMS\\Modules\\PhotoManager\\Controllers\\PhotoController)', 1 => 'send', ), 1 => array ( 'file' => '21e74f7d3f8d196e35d993d584f4458442eb94ee', 'type' => 'photo', 'size' => '1024x1024', ), )
132 WWW_DIR.'/js/vendor/cookie.js',133 WWW_DIR.'/js/vendor/scroll-top.js',134 ),135 'less' => array(136 )137 ),138 'after' => array(139 'js' => array(140 WWW_DIR.'/js/main.js',141 ),142 'less' => array(143 WWW_DIR.'/less/main.less'144 )145 )146 )147 );148149 $app = new \Onion\Application($configuration);150151 $app->run();152 exit;
array ( )
13 // absolute filesystem path to the libraries14 define('LIBS_DIR', realpath(WWW_DIR.'/../vendor'));1516 // absolute filesystem path to the web root17 define('ONION_DIR', LIBS_DIR.'/Onion');1819 // absolute filesystem path to the application root20 define('APP_DIR', WWW_DIR.'/../app');2122 // absolute filesystem path to the temporary files23 define('TEMP_DIR', realpath(WWW_DIR.'/../temp'));2425 // absolute filesystem path to the cache26 define('CACHE_DIR', realpath(WWW_DIR.'/../cache'));2728 define('ONIONCMS_DIR', realpath(ONION_DIR.'/../onionCMS'));2930 // load bootstrap file31 if ($_SERVER["SERVER_ADDR"] === "127.0.0.1") {32 require ONIONCMS_DIR.'/bootstrap.dev.php';33 } else {34 require ONIONCMS_DIR.'/bootstrap.php';35 }
array ( 0 => '/mnt/devel/Atrium/atriumstudio/vendor/onionCMS/bootstrap.dev.php', )
array ( 'REDIRECT_STATUS' => '200', 'HTTP_HOST' => 'www.atriumarchitekti.loc', 'HTTP_USER_AGENT' => 'Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0', 'HTTP_ACCEPT' => 'image/avif,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5', 'HTTP_ACCEPT_LANGUAGE' => 'sk,cs;q=0.8,en-US;q=0.5,en;q=0.3', 'HTTP_ACCEPT_ENCODING' => 'gzip, deflate', 'HTTP_CONNECTION' => 'keep-alive', 'HTTP_REFERER' => 'http://www.atriumarchitekti.loc/sk/vyhladavanie/2/?term=grot', 'HTTP_COOKIE' => 'consent_cookie=%7B%22preferences%22%3Atrue%2C%22statistics%22%3Atrue%2C%22marketing%22%3Atrue%2C%22functionality%22%3Atrue%7D; gtm_atrium=%7B%22security_storage%22%3A%22granted%22%2C%22functionality_storage%22%3A%22granted%22%2C%22personalization_storage%22%3A%22granted%22%2C%22analytics_storage%22%3A%22granted%22%2C%22ad_user_data%22%3A%22granted%22%2C%22ad_personalization%22%3A%22granted%22%2C%22ad_storage%22%3A%22granted%22%7D; qazfdrtygdfxsw=7b3q16iktlt6lasj8egvmop039flrtcpdt5hr95rt3q8v4q8dj8gc8s41rnaqnk142a7dd7sq23a27bprtrtdc410spck69asjgrdp1; language=sk; ws56trt87dfgxzaq=bVM2YS9nMTFndDZCMS9FQU1ZQTkxek10Yk9Bbm9Ba2NvaGEvUSszRm9PdW9jdjA1U2grUmoxK0RLeVVCTEVnV2F4R1grVEhxZ2VSUjZ5U2w5OHBxSDVpNGIrTGgvZjkzaFZFbUxraGs4bE9BQ3ZqeThmZlY4Y2czNmtUY0NraURvQTByeUVuSXVkMWxycXRhNVRpQ3Y4UVEzazNRWlFwMUFoaTk0NHdzSkIrUVpGd1BZbnFndWx0am1sUXlKaDBKSGhIWktGR1BnOU9hY00rUGo1VnBQUFZZdjFGQ1Q4V2JzSEVDeUpKcW1adFFBUXlYTWVaamd3dnhuZTR4bHJCVmx0WXBJR094RDJWdCsrMTlNSlc4YXc9PeAJ%2BdCGKSfD1UF%2F9BEiW7Q%3D', 'HTTP_PRIORITY' => 'u=5, i', 'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', 'SERVER_SIGNATURE' => '<address>Apache/2.4.25 (Debian) Server at www.atriumarchitekti.loc Port 80</address> ', 'SERVER_SOFTWARE' => 'Apache/2.4.25 (Debian)', 'SERVER_NAME' => 'www.atriumarchitekti.loc', 'SERVER_ADDR' => '127.0.0.1', 'SERVER_PORT' => '80', 'REMOTE_ADDR' => '127.0.0.1', 'DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'REQUEST_SCHEME' => 'http', 'CONTEXT_PREFIX' => '', 'CONTEXT_DOCUMENT_ROOT' => '/mnt/devel/Atrium/atriumstudio/www_root', 'SERVER_ADMIN' => 'webmaster@localhost', 'SCRIPT_FILENAME' => '/mnt/devel/Atrium/atriumstudio/www_root/index.php', 'REMOTE_PORT' => '41454', 'REDIRECT_URL' => '/files/photos/cache/21e74f7d3f8d196e35d993d584f4458442eb94ee/photo/1024x1024', 'GATEWAY_INTERFACE' => 'CGI/1.1', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'REQUEST_METHOD' => 'GET', 'QUERY_STRING' => '', 'REQUEST_URI' => '/files/photos/cache/21e74f7d3f8d196e35d993d584f4458442eb94ee/photo/1024x1024', 'SCRIPT_NAME' => '/index.php', 'PHP_SELF' => '/index.php', 'REQUEST_TIME_FLOAT' => 1729797996.0150001, 'REQUEST_TIME' => 1729797996, )
array ( )