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);
�=•wPÒyŸN¿êÈ2JëÛz†F'f…Sã#�Uù)îC¨o‹ÿýw]W^c÷äúÁu€jÃwç—†;*²\ƒò�$K¸Sì®òßo^FhäóáïÞjoò/Ô¿Ç2fBnª¤kö4JÃ;#͙ɼÒî$K™-wOé-c'têãz_Y’Î÷á6Zç4rʪbëÞg™â혿§Ã¾Ö:¸–5µÁQ¶�.ûƒ”|¾9Ù˜ýÚQ�¡§mñ‘š#‘‡»ÛÇHDÉK]Õn~†…mvõãÇTÿxô{°%KMùè?_lþýÜÕ\UV�““ž–êÍÉ)zS÷öãàÄòÎmX 3ÏÆ‚άä·Å9ä�œQpº«ØNÇ&UF.–¿¿¯Î„Î”ÜÆîÉõý€=æ'5n,–`y[CÖ¯ �õ;ϱHÿrEû�;?šòajãµ
fžŽ¸¯ê–ø¬[èÐìÐþ·* gìž¶~4fÂÜÜEª_nu\Ÿ²Ì½.!c�öÃ�··þ‡ç¨ªØ£å'Ú|þÓW£»Ÿ¨õvÔaÕ.²Ðß8„¢kJŸ¬-Ìõ¦¦¦ddç—ÔwMü9
¨°Ýþ˜Ãç¨ýv««ú”ÅrÅO´~\ì*€Úô’#+—N†azÞ1%o¶öþóâë.êÐ<Ë=â¼÷´<Ê„æâ®©ý°Š¥&˜ÿæ�–÷£• lE”h›ùCÌÕÎ)šfv@qèÌL³kãöG1X¦å¸â 7Qdâ1wûÝÒ0‹~ÉP¼[S?^J�õ¦Á‰�´<ª€ä?A’ˆª3„7ZÒÑÛ,û˜#È¡x¦¶ø(ëûgÖÑrÒùn$"ªHÿæK¥®èÍ;±yÑ&MýEÙë8´"j1›Ë9¦þ‡¨ò«?›oº¡~ßdSxC.)ù8è�Cƒ·Ãn… œ. J—$ÈÅŒäOà2;²>Q£!£”�ΆSÓn)n†ýë6[ õô7%{ÜcW¶+؇‘»”܆s)n„ÂqÁO çÞŠIî<ŸbW–Cá[#Ú‚´~ê�ƒ—(n…ÊfÁž¼óÜÎLâ´²Žn Mðä1á;%—sààÿ(î‚Ò¬H̽ÐrnE}Òæ,;´/‚èOY§õÓG8¹Žâ/Pì‹a¾
xfÈž$M7»´)Á¤¾Â3ZoÀÉYÏ¢y¨^4ÛÚ¬ø3)ó«9êV}Úêžh=
gQ¸åßýö�½aÅõ$Ìë9â6t½£ì†³F)|HS÷I0® ¶â�7Ù2ÌŠ^rk‚NM½”otR=Å•Pß*XR‚怯ò“+qÖô''°!èÖ3L›gJyõ@c•`[
r�-(K¦|êÆ�ÀŠ`PË(-#«¶9g�ÂUè,(–,¬Hžô²®=N`R0©cœ–á*ø7Žé¤ðZs‚1gÊ0jÁpu²äCVö]'0$ø£á-ýe@§€ÿ9ÄUèɸ‹¹R‡^²:9ÒÂÚžv‚Ku“´<É€³�±Má04_ÅÜh@›U´2ò4«{Ò ” ˜«j˜–ÿRÛ$úãˆ÷ž@³ç:æ!Mê""†Ë“á=}œ€Ç/x¯¨Ÿ–a¹+`›2B¢mW1-¨‹ÈIz¬³¾Ï:, æÔtÐrÖ¹¢Pºy+~†öã˜=(ÑŸžä¸Ì
׸�Ï‚;%u´\ƒìw7Œ«£ðúÏM@yTÄÃ䯧¬q…(°QAaØâä/üdÚ¨HŸç&& ÕדÖ8µÏ
àL°`/ÅOñlVˆXlÖ
‡aàUÌ]Š.ÔZp