try {$exitCode = $process->run();$commandLine = $process->getCommandLine();$output = $process->getOutput().PHP_EOL.$process->getErrorOutput();if($exitCode == 127) {throw new CommandNotFound(sprintf('Command "%s" not found.', $this->cmd));}if($exitCode !== 0 || stripos($output, 'error') !== false || stripos($output, 'permission') !== false) {throw new Exception(sprintf('Command failed, return code: %d, command: %s, stderr: %s', $exitCode, $commandLine, trim($output)));}} catch(RuntimeException $e) {throw new Exception($e->getMessage(), $e->getCode(), $e);
-rw-r--r-- 10028 1005 1.85KB Sep 30 2021 /var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/image-optimizer/src/ImageOptimizer/Command.php
if($this->extraArgs) {$customArgs = array_merge(is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,$customArgs);}$this->command->execute($customArgs);}}
if ($outputChanaged) {copy($filepath, $outputFilepath);$filepath = $outputFilepath;}try {$this->optimizer->optimize($filepath);} catch (\Throwable $exception) {if ($outputChanaged) {unlink($filepath);}throw $exception;}
$this->optimizer = $optimizer;$this->logger = $logger;}public function optimize(string $filepath): void{try {$this->optimizer->optimize($filepath);} catch (Exception $e) {$this->logger->error('Error during image optimization. See exception for more details.', [ 'exception' => $e ]);}}public function unwrap(): Optimizer{
$image = new ImageResize($path);if ($masked) {$image->crop(500, 500);} else {$image->resizeToWidth(1200);}$image->save($resizedPath);$factory->get('compress_image')->optimize($resizedPath);if ($mime === 'image/png') {$img = imagecreatefrompng($resizedPath);} else {$img = imagecreatefromjpeg($resizedPath);}if (!$img) {
$this->imgResize($this->cached_social_url, true);} else {if ($localImage !== null) {copy($localImage, $this->cachedurl);} else {$this->copyImg($url, $this->cachedurl);}$this->imgResize($this->cachedurl);}}}function copFakeImg($src){
$this->theme = isset($params['theme']) ? $params['theme'] : '';$this->module = isset($params['module']) ? $params['module'] : '';$this->img = isset($params['image']) ? $params['image'] : '';$this->cfName = '';$this->cacheFolder = '';$this->utils = new Utilities();$this->conn = new ConnectionMngr();$this->createImage();$this->serve();die();}private function copyImg($url, $to){$ch = curl_init($url);
<?phprequire_once('../_app/_constants.php');use Aristoteles\Controllers\Images;new Images([], $_REQUEST);
ù[9ÅU·oö(Ù|¢v’‰Å’HÛ÷û‚pÈžTå{®4= æ½Pa$‹:»·G9 þÿMŒìw‰Âá#úÄ‚_@á–ª1 ü¶�ùÒ‘ oi'�õ0Ë@i&Ó ðhâª(+Á¹Üñ°ÊÛ–ˆG*2Ô³�ùAÖ~��p—f6¸·˜=Jìl!š«&,` JE{Ox'Õ Æ7>¨w¥§h—òÔ “÷U;QÞÁ·R’’Õܧ\²½fç=SØÞsASWF…ˆæb/áL¡Öêu=¢Ò‹\K²ÐObîÜ•ûÎ(‘$ªã$’þ]¯ŠwN´¼õ‚Ä^ê—²®ã·¶ g¾Â—Ž„S!�Ö¿ÅÿĦŒ“eêï¬þÃ,=Œ�/Ë«ˆ˜mo&'�woÏ·+£a{0ÿ?óJ°ÓÅú¾‡ü6KÚ=ű3ðü¹°ü¸&3ýó³\K~L›NæNˆÓqh+ÞŠ?[1ý‡ÇhÑ_¶Š‡/¯@1.‹D ±Kk›ælSf—VnÁd‹I½"–ôdïnø©¬O¾Å' Çž çrJn?«7t�“…»Yøg¬28/ä•»M¯ì"*÷<Êѱãì›Ó¼¥£˜a‡© .€¶ë‰Û>{Oo5r”ðˆ¦üçúÀ~P"�S ëI^~x dqqá‹yhÝ57؃†“´Þ:Hz¤J2Öv^é [XþMl)ìÌ€¯ÖöÚf:°=MÈé�yûÁ{‘*Q;Öµmˆ‰�a£;¯!Îâõ˜§XØLÓ1@—b „`³ÿ¿÷ã7zbÙ\шÝ>™è8[ûÏòðÈ÷$3(üÛxqÁ{Ï9 /Åþ„CüƒÆVÖž¥i²IkQ#¸,fŽë¨%ZëeeZ¹ù4ryü•o¦÷†&o6²ƒ ›Ü!Sl™z?ÅÞ¦|Ýχõš†Égn¿’m—Ë«bê*ã+ÿ©‹« 冉¯Ø^yŶ2z¢y×6éÒËéÄ%jËíñSD½a–³<Äíð;tZ<¡[7¦XÒ kØ,Ó`ZÑjþÕÿÅ{ÆÅx'ô›Ü«~¸mbRµ\xu�4 Øný¼ça.°Âª÷ÿû1MiïöÇãŒ&�Ã?'g4H ÌìÕeƒpºiK«ì8ã®Ì]ÎŰ‰î¦Ÿ«ô@ï