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']
RIFFdWEBPVP8X ��ALPH»€¢mÛbå=î†Cv"Q Ñ5¹n�8™htÉdòI¸»»þ×øLz#×DÄÀÔ_=%3ýîMÂnpàðU&{ºUàµÔœ–‹é¤™[ú–IïV›H2ïÇ:ƒALNçïËÔ7ÌËäË‘wÎn c2ûí¼{zr»ìøßñ¿ãÿlÅ5¿É^Án3˜1‰B¢!!)ŽP ³€fd=b®þ÷ó´9FøÛú |�{êSgü»ñ/î¿zká?Ë,¦ðgŽ0ûÖÿZã±ô_`¯� ½aìúçÿW±¢OîÍŽÙ‰±¹ Éð;£~ü9öÿo¨sTƒ† Í3U„ö) ­êë2Ê}�ÜËozcH%ÂûÔûÕ�ö¼Ê�r'’­&À™�ôÂáJÑ ¹ÁC)\¾å¶—ÂÑtÒ3±ó*» AÃ]7|„ÔŒ6þ®ùþn¥æ>m]°íÍfT©sitÀÓ;—y)JôÚ•%0òlæ0@]̘îçÓì‹nEmUNLœ(Cù¥?ÒŒÂ$±Îê'~ˆSì.^¬ˆàZ@Í$£ÿ‡¬üÓ˜ ÷±¦æáüå—sÿÉŠ‡¾Ñ^ÆÈÒÊ3G›$!I?V÷âÿø¥±´†|kÀ~¿ßt4Rrdÿ…“ÀÒ=)I.0øÂv}2m–�%gCßê¥[&Sókï=n‹´áºNºGSŽB¸ïoŠÁ¢SH`¸Ž‡”,”ê†MÎ…²p³ã¬‚QçãnlÐp3ãϹbQ’õö#F ×ÿŽo¬4ýâGFàÎïP•žîÞQ®ç þàMhœfRµ5•”ÓEùŠkD@Hs¯ Tâ©DJhQB U§µæ{§;f/Dg×6Óù+|ë>‡ÓÕ�Âd)H”¸RA.¤…é˜Ù^л(hÙ5!ˆã£Ñç÷oÔTS fûÇ£B·éuΙ|bÁj<¡Öo Õÿã ÏZ?˜ñËa·}h&€ÚÛL&Ì­�òG,ÊrKÞàWú~†»<}�:-ê…´!9v…Q)µ¤œêiÌÏ�˜3àÜà¦Õä;0ª-8,QœLÄyGÖ è#üGÐ|Ò¸Pô’a@xÈÿ[çМÜñ|«Nþç�OŽ*‰í )Agõãm‹ãA¾B”Ï®¥ ó¶ß8yö�(N"Þ— Ðc5§t²v+µ˜‹Aé%j¸}¨ŸÙ+’/‚X!œöÅò·±K¡gEl7ˆ¬ájÿÛÐ oìÛ�_±Û°ÛîÄÈä–²JÀ0µE£‰‹ì¡–…‘…þïTT§n1X—ý4³|R�c׿«]ë½ÞöÒ•øAÊÛòªz9Ýqÿa8©³òefO> @¾ŒIl)Ï—L„+·Îƒ7Th(�ø}t¦Æ#&âfˆ¤\~Ö»ª‡‡�"Á«¸t¡Ï)ß2oø òšCÆT)¡„Þ‡ÏÔЇE‚·°Ú¢}ò |»°Ì�{�G”T‘5济˜›°M`°ÅþF°f©¢Í/†w®ÉfN<ªÅU§nvß[MøªÎÈ.€.pp8³È•#(l¸‘‘5_u†ÍkŽ,þHBâi_SÊjnå Õc:õóHkŽ–�¿^*=‹å,v1¾ Eû&¤þfª;•uÝøëj¶$¨ •¶béŒ*5•.n½­í…þj2{*eÂÖÍ¥l:èÓoX`ÿºT½�ç©¿•ä�Ù¾s¹�NI´PËóž‡ÔíèÈ€xW§}£ ìªÔ9h~§?·q¾´om§Ö2”RçÆõfs¢Rq–Ö“3?Õ†ˆã³P4Ý ù=X_ÿj×´Óþ§¢˜Ntzƒüýcï+T|§]·˜ c5ðHLñ­ŠBàŬ¾ÿSê¼ «nw¢âÂŒ%«3yA–ùNNºï†^òÆÍ`ëZÚÏ€§»wì"5A·P3,3cxëJ~3Â�33ƒÈŒ*è>nlVù´û÷߸0䑈>4´j-·ŒåR-Òê\›ÿ$ûâlŒÁ‰Ðh.ÉÑ×J¯N¢Lb©]R›;ŽŽl½^ÍU­s57Üß”ÀáTd0¥O6²U|K¾÷w )6h¶þïÒHõâ©|PƒÀˆlØå8¼‰(u(�ïk 5êîø|2Ò+ÉLK!u«7ËùzyœáL"É—‚mTÛ3ø2`¤XòQòåNjj&û“·’„²8¤Õbl¹ÿw?¾ÙU®¡nˆZ™pÍä…Õêïóú€êÝžÏNÍÝ䙨�YµjIIZœ?`z¸š“¾X;X Ö´!O¾çCUž®Ù%¥ž!µ«/xê–’I•ÈÏÄÆýŠõ G�Bžû cõ]V&ò”»o~¶º°Ë†Îë§�dÎÒŠ÷òå1èk—EëÐÃcöX)@ºG·.ÔaÓ2?Ï�6'_ êÝZ‚�TÐt�‚GÐü¿‘½§ý†ß÷õ­ÌÒBšKmˆZöêWþñåJlz¡ྸpxo«ó!ÙTÒ#�y›ïyÏ.dø\åz^j®W¦S~Y±¯˜…«·d¿ÇZàY�—Uh¥ Ä ?C7½ÎPÃ8´ í*•”ªzâG:b&±šƒ!óËV9¢hߣöÃ*�±Hð£q•’òÃI§´­£Ý1MàÝ(î,jOW½ÑÖ©–€%c[p‡#›5°ß×…ã