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ÿKßÄ=A}“þ£æ�¢ÙúûUöŸöÞ‰IÿÑ?±_ë>à>ZMÿcë—û?
�¿ÉöþiýCþWø_ð´ÿ$Ÿòÿ¡üÏöûôÏþoóßäþCžgÿ‘ë[ì«ö£ÿŸ¼'ì©ÿÏÕ�ÀŒïº„ÓúÖ›m¿ F–ìz=÷ÑVOÄ«|·ýt›ødõäƒ95y�H¶L^R�¾íkÄ]ô{�PÌ
»`í˜íké‘Å ˆýÛ(»¯r.½LïÑE5û^¤bïDs©³,:ÝÕû¸÷1<ê½äP€ùîMzóÑ'"Ï�o>ö t–eÖx¶K/�—ç^ò’f¹ÑŽóp™=ŸÑÈ×b%\(s§EjéïT$µQAOÀÄ£{ÎÒ¶}ËVC±³,h¨¸‰åýµ_)JRÔ¨øM²�£‚2¤Z'vfßü%ñáA^�õ¸¼ŒoÄm¨âGƒ{;ˆô'Íï¯0ÙncŠqRƒcö ö.s“@àT�–ó÷«•º'A]Ë>¦QkG\µS!Ì‚¶aºÿrsò0¥
�J¼YŸåÓ�$‡™Ç^7…9ö0«+%ÄI"ädÛø—Ý®°Jà%wÅYᙽ[Ys_ó]¯ù”º?YŸ0Ó–³ÎAFöÉÈSùê=\yš¼ö8Õ/ÆÕÀ þüöT8|åwXòC))í±³ê“™Næ#áŸÎ
°MÄ"+ £¬œ¥²�`(úOÑjúdÔ+ò�¿wôx ãüX™¸jΞ¹ÍñQsÉ[é”:Ù;‘è@?“i.FV—
ëNµy\OçÑÇŸXVmƉe˻Ȼ¿�Üu£ñ¹©$³±·D×’a§kކíÊü›b÷PeºñÑŒ µbyè®—ufžÖ»§Ò�Ó�ráEQWÏÞÖ•µy÷Ñ3Ô†¼ëƒßÁÁ+QÿM7E· �
iÅ�0xmJ¤í ‚ÏköÅ4bþo¾Ôð¦ýýe8sÚºªáÒEëã9Ô˜‹T¾õQkèÍ šƒ5¡6ôQ”ôXZ$BÁªG~mãVÀö�¯¼½4©uzÄ-&µÁG¯½å
.ç�ð"(8=yŸ>,¿Pâ‹—•×ì+õjä"š(\ÿìrr‹„Ç”tB‰®å ºGük�©÷î¦v¦…Ú‰ÎfhÕäøMëýqAÊñ
zн’Žó'×y€•‹5ÿíÃË.ÖûÂÿ7…rÐmÊoøÄ|Ë'–Õ¶WG¢\\ÇᜳŽAÓDš¬åÏ•Ñ0¶Ú Jȯù‡1`�@ê1’ý´«µRŽ!haÜ%T;ÌÆ†Œœy–hr (á¥