Kint
$message string (64) "Error during image optimization. See exception for more details."
$level string (5) "error"
⧉⌕$context array (1)
⇄⧉exception => ImageOptimizer\Exception\CommandNotFound (7) "Command "/usr/bin/pngquant" not found."
$context['exception']
  • Source
  • Properties (7)
  • Available methods (10)
  • 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);
  • protected message -> string (38) "Command "/usr/bin/pngquant" not found."
    private string -> string (0) ""
    protected code -> integer 0
    ⧉protected file -> string (118) "/var/www/vhosts/projectivity.nl/blog.symbaloo.projectivity.nl/vendor/ps/imag...
    • File (1.85KB)
    • Contents
    • -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
      
    protected line -> integer 44
    ⧉private trace -> Debug Backtrace (7)
    ⧉.../ps/image-optimizer/src/ImageOptimizer/CommandOptimizer.php:29 ImageOptimizer\Command->execute(array $customArgs = array())
    • Source
    • if($this->extraArgs) {
      $customArgs = array_merge(
      is_callable($this->extraArgs) ? call_user_func($this->extraArgs, $filepath) : $this->extraArgs,
      $customArgs
      );
      }
      $this->command->execute($customArgs);
      }
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/ChangedOutputOptimizer.php:34 ImageOptimizer\CommandOptimizer->optimize(string $filepath)
    • Source
    • if ($outputChanaged) {
      copy($filepath, $outputFilepath);
      $filepath = $outputFilepath;
      }
      try {
      $this->optimizer->optimize($filepath);
      } catch (\Throwable $exception) {
      if ($outputChanaged) {
      unlink($filepath);
      }
      throw $exception;
      }
    ⧉.../ps/image-optimizer/src/ImageOptimizer/SuppressErrorOptimizer.php:24 ImageOptimizer\ChangedOutputOptimizer->optimize(string $filepath)
    • Source
    • $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
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:104 ImageOptimizer\SuppressErrorOptimizer->optimize(string $filepath)
    • Source
    • $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) {
    ⧉.../_app/Aristoteles/Controllers/Images.php:218 Aristoteles\Controllers\Images->imgResize($path, $masked = false)
    • Source
    • $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)
      {
    ⧉.../_app/Aristoteles/Controllers/Images.php:31 Aristoteles\Controllers\Images->createImage()
    • Source
    • $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);
    ⧉<ROOT>/image.php:5 Aristoteles\Controllers\Images->__construct($methods = array(), $params = array())
    • Source
    • <?php
      require_once('../_app/_constants.php');
      use Aristoteles\Controllers\Images;
      new Images([], $_REQUEST);
    private previous -> null
  • ⇄public __construct(string $message = '', int $code0, Throwable $previous = null)
    new \ImageOptimizer\Exception\CommandNotFound(string $message = '', int $code0, Throwable $previous = null)
    public __wakeup()
    ⇄final public getMessage(): string
    $context['exception']->getMessage()
    ⇄final public getCode()
    $context['exception']->getCode()
    ⇄final public getFile(): string
    $context['exception']->getFile()
    ⇄final public getLine(): int
    $context['exception']->getLine()
    ⇄final public getTrace(): array
    $context['exception']->getTrace()
    ⇄final public getPrevious(): Throwable
    $context['exception']->getPrevious()
    ⇄final public getTraceAsString(): string
    $context['exception']->getTraceAsString()
    ⇄public __toString(): string
    (string) $context['exception']
RIFFî WEBPVP8X ��ALPH‘�ëZ›"9¥_¥R©Ôhµ†¡5<ËŒ¥�˜!dò03?�åȱCË1;fˆ˜™™—š ÿÊÙDÄ�e&Ä:Wî9ðÏß³¾?C�‚ΓΡøóë¥êˆ~lÕ u´>�Cöý °#ßΡû}†ïþŸ«¬žCù·eßqú9Î!}œ‚¸îcõ2d–øˆÕ\ 5&¿£5ÌÀ€wþDk„›tã5Á©�ÀL,†ÞTÁÿ‚ՉטYÓW´Íï±ú.]&ê5¬†\Ôȳ«#ª ×R¯qúÚêSŒ˜؈ÓÑ€&` ¡®�~£ÛE3¡éWð¹/…#æ ¥JNcs½)Q9ÊÕX.µã9&¯etŸ Ä¨â‹er5kÏ>}ûÁ·ÏÏ�™œîS˜`Š/–**Ê•ÔIÙò�—²¡¬¨¨(£û\ ˆU`ŠÒ3¹$‹2‰ˆ¦0 Ö�r—Šé‰DêߟHÄB>�`@ì0áòhšCMu F�8@8rF�8 x’ÿŽVP8 6 �-�*‚‚>1‰C¢! dJÜ‚YMÀ?@¸(#u•y¿�¡ ú ñ=é#û3êöÕÑ 韬'ùaoÚ¯`Ö?LÛ„ÏÜ_Øïg‹¡ßˆqÞ‚öŸuÚ÷¿Æ~[ùÀx{À Ö¿ãxÀåßÎÿÙþ`xªúõ�ü?ª¿è_á?/¾ÿMàµô?ò¾ÀßÈ¿¡Ÿþåù_ñMþÏùïʯk?˜ˆÿ•î ü�úoüð½ä~i}|~Öû&~©•QÐr5Z-JÕ•kË}µeg§ÑO„wNË·ÜW “ sO.qM1êÛäô`ÎÇX æEõ-óç�"s¾¸• `¿Qz¢Wã<+ò5žg½áGpe°dYDJ?>£a•£‘ž5]¤Òÿ£Oóaï€èÙÒ«¸woŒm�á)¶š� q‚Sf°¶Ãƒ»�Èü¾=Ýl  ®&U1€þ ÕH(ÔÄðÞC.kNƒpµÙjª—\þÿóòÖ\ÐôJ±Ba7�tØ[ÀmË_©Çþ«7ï¤ûZZOê:´¦Díþ”H\óíñ¿ð 3Æï„¨ÊÿDoÁ±S‚`9X~HÁÞPpŽ·ÈÆ“OV`ðÊ.u|€*�Ô-¹�QU™~ Î=lBCY÷¹GHÇ„Yòag‘¤±Îú8 IéñbkÎWá3+îþ„>Ö£—Õñ?ÿ׉·Q�K}ì´È5Ïb6 ŸjX‚À÷=¯Z§Œ~“ÇÞŒÄÈÕ�¹ßoBÂGp€R¥hù„/÷ð�Òã‹®Ä(v®jäÒÊÍbe™ÿ1e2Sø¿d¹vÄp¬ƒ74èÏi2ÕtžÛÒeÓÿwÊô´–©ç í‘jPô2¹ìó¯–ú2‰åaaÿIy_ڷ⑽“ÆÀÂ/Á³ºNc]Õ_‡ü™Ž“œj4ÕæŸ’‰±K·Ô숤ýO ’ÚÑånI[⸠RU+ѧqȀʘyŽL„3*ýÔ }?0ÛÝ�jþšFîfÊî±rìXè ¼•�(HEð’×e cbfå†zƒ½íãà’[ï¤ç\VkˆQ/r£‰fíÙJH&uwƒZ ·"ãÓÌ9êÁDíj,@~�‘ZñäþˆßãUöƼ9óLjÜ/eÿø·G‘m–¹=ÆÊ¾âý¨}¯&’[Üõê²úWlœ»ÐwƒÛxQï :Á'u-Ùô·žüßE?í‚DaQãMæ”Çd™pì“î¡áÚw/|Éà¶·Ái»œñ"¨0>òQÔZÜýY …•ýE<—ÚjŠ»ê®�§|óŽ3ñAb+9à“ü p�Ѐ9JhJqU# ~ä­�qK@šì�l/ì-Ά˜Áø;ú´OÙ6öO‚¦CûêÚ¼_-§Õë÷T{+yñÁl"OÂ~�tËÊäyŠº]ÔýAC ]ºÛ�…‰²`âã’Ó2È=DêØUÖÏp†óŠÀ•á78mä4RMÞäßú/þ@SÐÞðK5±ƒEÁ:Rúð70B$SÊñÌ}…C�å_~&zoáÒÍc‘-Kf1éÉy þ-‘˜¤èzfêªÅGê˾ À¬14ÅáɧV‹”ýr�ñðß ;Êþ]*ë…D¤‹O"Ûãâ�ìfñ´Š%ã1Ã/Ÿ:cl ±«ç°.ȧQôdÈ·;ŒÅÿ?ç\Eódy’ÜPìµa¾ª™D#j lò‘_ v–íUŽŸ `íÒŒdw뿹]|«íÐDP>?æ ãÏoHÓgdïA4ùˆ8C<ˆ9ðDGo® ðC17¬ÈHª%À8Ü›ÌÎÈEùÊœÄ$Ma.÷%þÀ·p]¢Ü�Õïªq/ãÏÔõž.¼ôK”°KpLTÜ­©h¬ÿü:ƒv¤‰´¨‘´ê>LŠiñY‘ùUoKå§÷r©¯±€Qðûª¿)VX,ÀŽÏ°#Uü%ÏQ]”dÃHF Õ�ú �¤#âçù5œ÷€å òmù«zó- ÿ{—›úhyŸèª‹äý¢ä_!œ°4d•ÍC?îsÿ|‰‰odHÀÁƒ9b_ùUýㄉÐȪJ:3 �I û 2cèLŒ%qPá<˜¿øja¢?1Ê®zw~ç+xÎXÊ$[�+#7ªòñhÏËïàý¸"µQJEíÜxvüL›&,º&‘grª7·z„¯^Q°þ Aëq�’±#tôÍ�` )ˆµ�ËG Z8þãªuôëÀ<…»ÍzùA¸ÓïQÌýt�÷|Ki¬åäŒ Âß%áû@Ä|é:HeO(³ ¦x¢ U,Wü’‰¼™6ÄÌaOL½�7äØ €ï]�Xn4`%7+0ô D:‰£›±�¬h «á9Ûïw},��äËðórG6¨è´X"[ôB|»�K±5­ã³U÷[Û <ÔBmܶî˜ê™8VtCõ�þˆµÉX­þKœ”7²w³?‚® qšù˜,€[°Q«¨»žhµk|C²E¿¹Qg¡’ä½u7é>k,S ^.€5saqž¯n�@n=Øgìhöîf +¶•>½œ6�rù†¬�°ÿd(™lûF¤N¡‚i>Ùð½f&0Ö:\ãyKêþ‘Ï�àíϰD‚g� Ž™&KõðÙ˜Šè„ª˜®hÀgÃL´ŠjxìÅgR÷JyRõ± ªyyL ãÈZI%D ¼”º™TAË€äÁ<1ß—„D@’L8Ùú¼x¸þ‘.É^ùÖlœp `"œŸò_Tp…+›8XqbU´'ôü-§FKjíØoÐýwQnˆçYy»g|E/k¡é™÷<»±úcÜ￯ã_Ö“ ™I ¤Õc_a­ÿçÐÇÇâ~K ¨Lо¸—¦J‡å(e;™î¦~@²‘ÅênˆñGÜÒ—áÞq9n©8�:uc¤æÚ�`¹âůâxb¾[äÊxµ‡$1âÉ2EßF,÷RåAð¤AÁ®§ÆHÒ“ÉÝÊ�29þòìû ÷^*ÙŒõ¯È­.ëGyWûà2[ý�‹Ô–Á