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’�«þŸ"IÅŸ¢(ŠZkŠ‘•¦£)Ö}›‰ÖÉע}�ÜŸà¸è‹�‹ýÀ/rwwkÖª{õ\61ä_ÓœXZ;öW¦ 9º_0xá[°‰bðëúÝ}vÕ«íûÐýjÙ/ã°—ü§Mt�í!ödáÍÑNm¢|•G€ú?8CáÄ&ÒçØ ô Vï!4õ « Ï,Àü?XmXxo€ÖÄkDP‹@lÌFQ“EÿýWZ/^Ca�¿Ð*”†è/XýñÜÛX½¨´�pf±:­B¸J}ÀéWwLÚ˜S9ƒÓ™„°‹ÐÒJ} £^u9³�Pºþ&>Oò©„¤ÄÆÊ+3æ6wüœëp°*”ë¥^aòá¤çi%) *c:ç5O]yõé ‚ŸÞ\ÝðsžŽIa˜Œ¹cŒiõóǾßYkŒÉéX)˜t*uÎÔÖÖÖûµµµÆKU+É€DÊKU¥«S©ÌñŸJ¹•±rA�ì€ Y®b(*§T0 d�RÆŠœ3 d¿OòßVP8 ˆ ð3�*‚‚>1‰C¢!!iåÀ   5ÐÏ_‹¨rðoGZÝ< xûüoÛ§¼ÿñÞÀ?ÿz÷ý0ÿSúµØÌó¿ìö­{$ÿ™ÿ+îõ“ØùGõüžÏ^ Ò=@?bÿÿû1£ÿÓþ·à£÷ögà;ö ÿ¯XsÝÿ$:õ=MìÆr_®?˜áŸÔ“ð–àòæßò?¯ò5õ×ý©ßç_è¿3>ïÊòo`æŸÖ?éú~ý5ùí¯éüßæ¾¿–ÿZÿ‡ë�ìKöWØ·öH»�—‚®cלl™K iÇÚ�¬q¾��g˜ƒR™´«mi£áuYžž–“¥p{÷RXø–µkýžæ±$ƒ–¶î†÷l�H(ºdcص1§‚gÚ�ÜÉ"Ø^ÖewÅݾz-Ì'kJ¶€E8q¶ˆ‘â&Æ9F gŽ+…Òü->ÂxïM†øÖ1(غ¶µK)×p{›D6 £Y%xšy·Îž±å»e³i Ò‡JÔ Þìú¢!Ù*9÷OÁ߇�@ˆy—Cüœþÿù ­³ÚJ (Zn°¤$ìÕ°¦¿þ«—÷»Ä*± §Ä§¨¦ÑûAÁ/Ÿ÷[÷ÿä3?Û6i¤?üœÙ1Ÿ¢:“"Õz‚ëxF©L„Kä¹u¦©˜7R×8L¬Ä53r†½×í7O®j’GY†Cw�vPèfL#¬M‰£ë”ö¬(¬žÿËUR�±ÿxÿrv(Œœ_þ÷?ÅÿõIÕÅÌl‚~XÝžHÕ×kZÂr?µeJ(ÆQ873{ë›X·_NGÝüŽÌåüá XøKíðšî@k›V êv�+ôèvë®D=ù�¶‡ÑàLó}Õåï_ ³vâ*ÿ)2á6ÕNRiü iÈÜ™êŽ:<”™ ޵eí¯ÏR¹iQïÒUc ‰þuÔO‡«�¨2'ôvÛ¦ÈHfiJI²_Ç)yp±¨Ühß=ß0×[|Òr1D ]ÎX“ �_í “hT® ‰K´Ôâ\÷GÄÁ³Òþ#œ,"ÿþLÒ׆ޣ"ºh¥˜à¬8} J«Ôá…ªéêøä ½ˆß§+<@ßÝ7prï$Üÿr‘ÕÅçµ°^·ùI¤+bAí³-�IÔåU¯?žGgÆ>L% £úx[¤^[©8ÏÂè^&#Ro&ëµl¢d� Ñ'œ^_.=°Þ�R{Å$‚-kWâ-1˜wÌ×àÂþ$Bòè,ˆÂó*èó2ì€ oÛíÊa ŸéA/äop_ìÜš@@5WÛ‘­jcôÔQh,n@´[ŠZŽià2MÕY»ßP�–ûPñ¾©0´iñ³Š:Ï€]­-»HÝ^ݰòü-\ú{ŸY/ ÞÊЩ†Ðù–ëT·—Rºg¾y³`Îaì´b1¡ `§ÊgšÓUþ_ö‡Z:û�ÑV0~ánªˆÝêç>ˆDü{ïKymf ¯>)ãúö9°»ð¹Ì$¸^ÜŒ’ö$&ù ¶üÎßQ¢{¨�€ËX}»´ÿ‡mÉ4º¶þÍ™±"ßNv¶EÙg²;±Ùfª.’¹53z 2ø¬¸’ßy›Ù÷þc¯X©µCJó·û¼dÓrÁ5Eƒ ¹ý¶}b]ó h›¤#IÊó+ Xm¥Ø¤Ý¡Ey¤OµäŸ,\ü‰>¡ôId ÏRh§]�n‡az¬¡uß8n;(º,ôClœÃ,Šæx×�àßÁ�û¹1bÓúSŸ„|Åê[µU5E�‡�£ ÆÒ÷ó¾¾AKúqæëe±wšÇ#u¡¨:2R)cƒÅi›ê<"õ• ¹ßG¼Î¯yaê{J=Ór�S�-H‹s-iNÏM$¾ÓÝÆÎ³32áµP¦oÌËÕ ‰ªW‹¸ACÇ´þ…¯Èø|.4èRqß]4cp©‹ �ßþ3nɤ‹Æs?È‹XKi„ªDÆ0)�뢒úîê£K«—éH±ÜÞ/ ÉcWÞrW³­œ^¥S²ç{3å?ÏUÃѤÉJDX‚MñÎÃ+Ÿ©ÔÉ6êqLÁeÄÀpW^H®ÉÄ Hì`¡Ë„NñüaÐ¥1©P†WTÑùÕŸ2¦‰= @%ÈŸ»YŽöK#Â^ �L²T+´2Gu:´¯C‰¿íÚ¬>ìáÓL2BgJfë”Þç]+ïòëzôÒ¢NÈÛq/I¨÷ †â6" —Œ@\ã?VZ÷„°Ó+Mî[\Ø+ÁW¸‰nx½êvv/:ävšýíÞ·ûE¯›¼ýAiˆóÔÉÞ¼x-Ôú�õÊC-°*Xø°næ Ũ©Ë äY\­•�˧å>‹ÑÜ%Iü(ÜÜaî+*\ Oý±3ì1 ÄM�±µâý²Š'ƒKhGc½_J¤�ßCé¹wAœeN � -­ÄÞJ}SîÇË%Æáó<D®FÔjŽˆÇ|�äl‰Ÿú&ÐUðTP%»Ï"dßaÇ;Ëz¥”ø pt°ßÒšòΩÕ*ƒc9~ Á9 fŠ£LÓ´ˆ *¤d.¬>@;„¨-ç²Þ bᴖᮂ™]Sõò`õª’âªË‡'r’i…0ÅÂY‰¬à¸1/Íh‘ͦº Î/£ÒÎÛ÷»…˜ìv¿ j(Qѵã´G¡-îO¼àx®˜=ù$ p©;–òǹÂ\÷SX]^Ce›pü|�¾ò—“¦k‡"nM‘ »Ÿ4!™°?¢‰Ù³€�…o¼¼ƒñ†³:]ÎÑÞyLqHn“;œjP›Ó�B¦âNòòðíÌ6ÎÆúr# ì+ê3­0ë;cg#}š vdÓ*ÀB‚ÊK¢‹`ÅFöá¤ÀSVÍÿ£sKÿ#$mÅV$Ë$ݵ!Uk‡ÀäÖ ó¶N\…§oßÐ-±þ5·‚±{y‚GÇ…*u˜3×.U­–R¨*¦l©œT•’ým$vÍŒ~‡1—7’€ìOeó'÷Ã?~Ä™ YÞ¥‡è\}]TÉ`kèлπ¬ž„ª!ˆM÷û0cà«\Ab¢cf盥=L? îÿ��Jœüt?Ư»ú¹·°8.U6å{Žf>GÌÞÜAnöA�W™Õ€£rÿ$Þ‘,7?¦ì¾;› „_éЙüâ¡"LûÐí¦—ª‰—’&Å~ßL¹”„»â’–¼ uê(�¨™¥õÊj?;ç€Tá›��ZG¯ ò Ù‰Î�d£V�¹>��™}˜A ázÊE^Ì©rV6 Úý‰'?½a½ŽýñºÅ�üÿÎ%uÔì/)3¶ÃÊ{yø±?ÊpðÔ$¢±×òv.ÐyÒ�‡p÷×,ü0ÿçŸ1ù…OqS-B ìỡöת¨Ÿj¼l€ŽÑ6@’d…4�UTà†¤ÎÏ™ÿTYwÚró&HäuuºTñ-çÇ’mßWÝ¿´ÃÏ ÐO‚�˜õ߉t:¸1nϳâøakù{Òü\i?׳ö¶ôœà”˜ÇÝAp÷Þ”÷