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);
Û[B^> ƒ1@„5¾.â÷€pì‘âw\µCÝa�Õ;jwÍ\1>µ)�â…çJœGß/ï1É’#¶ülCN"IDÎDU<õ׺ão®BÑÝnþ�‹7‘w3X�ƒßêBA¹Þ÷ü1�2íՃЬvÞ´-‘ù÷òaû?,ÓÒu{ûÁ¾ôÒø¸µáÑ06®ÈÜÜ‘œ‘|–òó×EcIýˆ£hàžVŽ‚Üðßå–’¦ž”3#«ó�~M‡9ÒDFFtNGƒunÀg‚áå À?£¯éêiý/}Sñ„Í©�–Vÿmze]¡ó/ÙÇHÄåWzq>NCö6îeª!&ÿ`b-^íéXXíA²°ÕbÙÃ&9‡ÖŸCQL>ª¨–„P¹õ�ZÁ“ÚÇõܤýÿå¤d¼MsVNÜß—€…jfû‚UŽQÞé ¯‹x¹Âüª§oŒÁ‚.KçKj2‹ð&PpZŠL½÷9³X°5Æøò¶„¯�Þ¦~¶[.%¢Ý2¿ 'ÒÃ57[¨#kÙ�öV)dÈ+ÉäAõ†¦¢ü·AapLOk¡â»-ñ¯®e=,/Ù8wèâÎ.è™T1Gû]`²¶^ÇÈ<öò¹ô¯Aìm%ƒà~Wäg?ƒßÂç²Ï·ÆUm ¦ŠaücEPÁ�Ö… ŠMÛiQÈ_å w¿à Ï¥õša¡í11Yä5ÕÍ TÏh5ŽÎ wH$<¶.7ž¹ÍƒŒ‹MW©�pvs+ÿ›�„÷5¸7?Ûà’
ÝÅ�e½o\6×Ã$âÚèòÕ.{Úù©dÜ@Ù3
EgûÜþTJwéþ½,ypÙÆ¬—SÃETdv²ø&ÿùˆ‡V¯ÓøDˆ_ò3¿ÿŸ¨¨ßïÞþV+ûÀW°¸”T¿Ñ¸‰ÄÔƒ ‰ºã??ꄟÖä¾C¥ÍºP"
L\.ˆl‰n¹W1�’|µŽ[}j®ç
–z•L¶L%Mž„ËÒ¹öƒÄ(ì9†³x©“‰}m»üµÝš´á—@¶XyÊ)†º‚s¸,k:ˆ«÷Âw¢ŠƒQ[%%GM'æjDÅKAì yÓ
DzñKŒfþÝÆƒÍÞöÐ8ÐÌÉ¥°h÷ø©¥Niƒ”84fû2âô×6è0uï†>@®YF†w/�åÅí\-ÒI]Ÿïôã¢>è½,ª.u
Õ²T|Ö,ù‰<ºà¯)1ðŠ«{ÔŠ®OÿäŠg
&¡M�;íæÏý¤lPoȹW›¦hÚiÇ´±Èò“F¥Þ?ë‡÷£Ù#,ÓJ%´üÜÛ|²6º.ûâý;üað]E’ZúôÔû,3ëöö�˜È¯©VíxF°¤¢LôÇ«MUrOë�Aà`�Á³îðgWÈzÅtÛ,7J" S)(°U·°Q)=ÄÞ¡Xl*“{•ó�;,D¤Ã'å=éŠÏÉ!‡5Hý{‚b¬òöf‘´ã�UÄ’¥vVA�ĹcÍñ¼ƒ‚þñIÚnhˆojýA
7ò2ÿudÓïý÷"Á4#}kÕ^tUg“ÁnV GßÖ‘©DVÀÕˆE™š¼Ç²ÞstîQ?nMn^£]Þ)ݤ0béy¼²’ äm—O•-�~±²Ez«Ä½W2akTÎ~ÇÀÞ�SiKIt½mñÛKÏœvŠózC–…8RÌÛ¹´œpûÍÅÿ±cà˾¨–QOåJ⌘¡5«I‹#1ÓÌŸüàCG² 7,¯Q¾²¨Œ8óÉJ8ÉÛl ªÒŽl�„l‚5È�1//5ÿÉÿÉê `…gÛÔÒ<Z"(þ=@Ÿ(®¶A�V·)@©Jón°èÚiÍÔúçî>kôã„øÞo�ÑÄýX3úöhWÊZã#·œ.|ô~‰}X|MJ,þ1Œ~7®nùFÓ¢e£7ùˆ6.Å…./ O
�= ¸ø’ÃrNÀ˜×šØmÑã6+àçx~#½¼-ß�€Îõwq³M]�ê°•×µšã;8v•Ü!ÏJæd¬Ÿ²xºù .’/^ªÏàÃjÙ,_ß�óÈ_KÎé‰êT81ªyÆòpÂå¢Zßsóï—©*’;ËMç}»!ü%Áá6xh'8×Wt?¾Ò4»æQ/…ß&ÌÊC¦AîÞ9¬}³‘ÕýC†–ê<Ú=Ã�ÆÃî”
wÚ\š4â6BÚ`0þ+E!À/»¿µ´‰T}ß¡eƒýnNxCÛa×k?."Ë7ÓUªà„qyG*ÏÒ£^cø+ÞlÍŽpXq$½¢L-—pýáQd®L¿Cƒ`÷ø‹}h±Ô`éÊa·ð”¯éëhëˆvsaœï™Öãy9NÞ~L