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);
~¸Mï¦PúAŸLQFþYÕQÔsWÑ_ḗ½ŸYNeÉ—% 0AX…ý’cÂ{U)2 clÿèÛ›ó¹Ä,÷S+`2{%Éq"—X%© âÉôªƒôµ¹ÄÓÛ*çø¯ÿåiüöì36}ƒûㆡ”ÑÑAp[ÙÆÍùÀºÑËAiâšM¶þB�þwþ"}ÄÁÖí*3΋ââSÅÏ»VœOúœõ• sX›‰¦0Ò w< Aw¨¤�ÛbÔ~-ˆ¾£˜]¢Èà—ÅgÕâM5ƒ,ŒÌûá4ºÑN™³2SkPFÒ�¡Á3iöFãEë(›†Óßà¯êˆ“ïÚgEÿhœ®ÈNœøí�Ž% _ÃþX«ªÉÚÜÅ‹d*—¦&yª)¡ÚÓj–g5óɤ³ƒ-HDP;‹ÎoNÈÀÁ‚¿ž¨‘]ExŽÀ7K»°¦»OâK¡Bö $<´ã×ý ²îÕIRÅ™’%Œ@þ+û ™pãï›ýÈG¥ãN”¹Ì~†?ùÙó2>HJ`«Gvy‘–|]õ(ú"l*ÝsÕbû!�uëùÆ êûº/Ž*ëÓ_�ª˜Þ€\•J`–êUÐæ5Ö{¨ÏõÍl †ªeSæ"“¼mYt�ÑéÛàø™/€ùêM¾{¦ôt—¼mjòö¯ÝòwnÄW„Ä3�mëg•H@£,ª£¥®J‹WåKk&4ÖGÛE°¡—D»ùìòÌp#/ß¹õ:C‡7‹”²{H¢ÚlQc}Ö±õœ¾�¸ùÑ3è²þ-°Ûâ×�ùù†_/nÿ3ßiW}÷•öÅ¡5ŤB•-ó’Ã+Fvu#cÞì�BC¯~WC¸Jl1aV&Ê�\Ò-ÕôÐ@L"÷_d¾ãïœÂ´ÇCpùÜí¤ðîT§Ni‚‹ª ~ÝÔ ¶®á§uŠØïý"Ö•½¾}™¼sÀ*Žb1î‹ÖURø^C«Öh‹tE=Ù·LÛÉ3̰ˆç�Îh+ü‘áæR�zŸ¯¢2æ’ -žç™ôk¶Åo‚ÊÜf¡,QQÜŒA–/ÿ#v‘Xb›!ÞØºû:š ë1¼ÑB ;x$‰Ë‚¤èA�»]*Xx=ç“™¨J8ðäsø.6Kß‚ID5RX»¥#í^™º°ŽX*÷°cü°ƒÜ´—ç÷µÞÐÇÞÉæ ò%ucíbMñçécË·¿í>*÷éDòÝ•3'e/U°÷ÂOºÇ«=õ¥<°¡ì�W"¨•P$Ȧ:qIL`ùµ«§æS)ðóãÌZE¢€ÿ ]r:ß|\¶´â@ozVw«ŸZuLrL–`çæ}®ó`ühþ¨.Úp¤¶Å÷¥@Bƒ“l