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);
ô|ÞÖ›ak<÷1 ˆ:VçÉ?:¼§úÿzšº˜´¥tϵ]°à�‚zL2D‚AVýxD5JŠôDS…b…e~™Ã*p¼—WZ»n –pË—r„‰º6F—¢ºg5v’KŽ*ÿœ¹¸qqßõhúy.&’ñ©9øÈÌB}8]—,áòœ¡_r@ç5U4’ŸP’~fl7ð¹ükpÒßèžã‡©¡7—¿;G~|!ýòg?•jK6ƒÖKMsNX_¾®½un;Êv”9¶² CNT…|QÞIî7ú·û]ª (Dõ\žÖð�í@šhöÉ%LÿÕp`-m ,ªB [[M'0bgÿ�ÉIé„Hþz‡z¹"I»ù¬ Ê5®÷2ÝþA¼œ›ÃÕ,ín ©Ô¡a©’A…)˜G*ÎŒweå$~%ZÚ`qui5^’®«úå^ˆ¡3E ‚8Ôx묂㙃í3O¹ÝØó¥Lǣd›ÿ&0Ü�¡TÝî9wëN^¸ÿû¯M‘òqH`޲•½Â‚—Â2Œ£BA@8E` Z<‰�q]dŒ«fmäëAðôIwÕÖ”»>ßUo&èFœ�P—8ÔjÓ{Ëi£E·[Sº¸Úéšõ“jÂ;êÆF¥¸ƒ-¾Ð¬Ò)T‚¸wnY½Œ‰º sð6Ú"Òz’A‰r5ÁýM úøØ8KÀÁ,m¨‚êéRëŠ÷/à¢i(¼[Ę¥8½œâj§uzÕÂW4Hº#—m‰Ý£>X�¨™ÇÀp‰˜ulMɽFêÇœ ˜†–j¦q¬;-^]ƒ¥ðºøÞÄЉΎEAÜŠ^ý–v±áW�ÔèÜ À®^Î 03Ö;`j5G–;˧“u_RjR’.t=?av Î�êIHö\3/ÛìÈXŒu¶P:n5‰iÄ©ð‚(ÛŒ¶žÕgC$“X(c>¾;£#—г‡&Mç�V ï‘{Ù‹¶%sã-U“7<ñhr¹�û(Tm:.A5|€„!Ñò5Z{_Kèh@ø¶†›¸à²gszŽA`#�bÅø<¢ zóÖsœBÃwýŒØvuE#׈�&×NÆpghÔÒŒ{µ E–þ•%Vc>5ë· ’Š“¾»âOgy”rFQÂhÈ® n?‰ëR�:‹�{ö¶:ëî *ËÑר³NÞ"³A½•CF ¨¹â¬õ&ÛëmU