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‡�³Ú¶ªW‡Íáp9\¢—Ï]âîîn¥KéZjïZ†Ô!¿ ¤ ©´J婞»»Ä®=Ù�×}1ä}ã“ýÑ®‹nBãö»+$_mVQ]Rv¯0ý±éÓ­o®�}T¤©ù˺¯ 4$½¹BøžM•°s…ò:U ?pú’ @·®�^P°½Áê|AñÍáTA\„à 2P"À‚ Žˆ˜¸¤¬²š¿UYVR\ŒÏaµÀDÉ⊈‰C2&Âe‘DD=0b°8<‚�Ã"q D+PƃÂ$ŠRXgˆŽ@™À‘¢3 Jþ;VP8 R 05�*‚‚>1ŠC¢!¡:ìè ²gʽ+ñòÏæ¦ºüÓî÷äW^÷ÇñOÊ?¼ÿRýËÿôƒû_ða‘?›û€~�qþ—û}ýøϘâ¿Ñ?Ä_ýÿùQÿƒýWø¸@æ_Ø>ÿþ#½Œ¿k½�W})?^¾ ?fé¡ýÿúþOýƒþŸçÿptßÛº1¼�íPÉ~^úíþKÃ_‰ÿ&ÿö�Ä$?"þ�ÿº3Ðnäß÷¼z4üéÿSú¯¯üÿâ¼å}!ÿ{üwí¿ÐOòÿëò7¾)½�~Ü{"~¼ÿÿ½Œ©}ú¹ÜЪ֒úÛXúÎÝ \ôîüBžS4 6•'N˜Ÿý¢Û¦KrÃÈe,Sò8à7¨Ú0‘8ýÂÈí®ÀÊ:®rˆóø†BÐZßzð°×¡Öwµžx“‘@ål}^À#v QŸƒ*o\š‚¡Ì™_€™/ÕƒM­A�ÑF„"k#Í܉}zû7‡�+‘c=Äâèwf�oCC÷SÈ#ª*cÀ¡¤”él­6CwÓ.õ´à3 ¯9°`þþÿõ÷&’ÖÀ*MN×6_�ÞËÎÛó4¯QRô?Ò½�}-S§%‚îöw œ‘þ©Ÿ†²³…­îDv$ñR‚šl{!|/ôzO U‡-ôiê› i‘Ô@Â2�ŠuÐ-@¯¤œxÑA{Ü´*¾>êzTPî½½¾72}cÅúÁÙ½ZÏë'ÐAoО )ó#CºÅ'í0ýóÉ—ÿò‹|‡”·NÉC[ÿÔÃ>¨“5Ó>¨L�×B•-Ó`¿W‰Ñ1²[ðÐàÑO®+y>À¶n"hÏPýÈrÁÞÚÇòÜ{g.ª¡³é-æ@ Jª©ç‘Ê©ù+@Z¼¨l�ý+¾.Ϭ97¬ÿ<Øñº±ÒõЫ°hÀ yû— úëð¹{ÂrÞÛW€lùëÖV&ùWÊm02¸#Mð�øÉ�ßѱ õêé�B~Gßÿ_rÑôÀÄZý›š{©êU l¨éŸÃóúkš†¡‹q2r†^�X „W�¡ã`µ›ãùÆ_*8 Î; eËϧH;y!Jt\‰š(7RmIúª)òy”³[?Zòl+H¸4ñ}­5¤c”9† ·ç“±{^2Ž!]‘·½À–ñ©\€)jho_êiS´™³äîÐþÖ«ÐDè¤éäöS«ÿz`aˉ°x®Ú“ÛfƒGµþÄÛþD¦lcÛ£�ø|@òÕŸ�ô·ß®¬2ÃdZj9Ÿ¸¨ûÆÐ“qS@ѨQI¡-’l.¥õd)Ý•Hòt|[›®°Fªô}¨˜G:Cd~/1EEsžf�ÃÖ¸{T ÿ³ì) áÛ•X^>?wAç+ôóœj-$f »nG¾ìØàAQ¨Ýÿúm�»…Ùj=¥Þáezï2`‡®O:¯K;Ë…¬óá)`M]¬EGÿ¶û¹.ØJwgÃ&óºÄ•’©®"¾@A†¢gï==Åþª‰à¹Bl bTÇÏÏdãð�—Ó5Šâ%4¢Æ3¢ë";Õå’Çz€±]ö‡}÷Lu˜Tî=¼Ðö·‹Š'T2†Ý(x,Ny–¶ é….4NG=d¨(�Úϯš@�ft™÷•aFÕ¢X"�‡äÑŠ¬¯Êë÷Àï€ebà/Œp\þ%Êß G·¢�b¬!O£ù0æ•at¿º²&€™F@Ä¡<Ð�cJfú}KÌíbG³Ðó۳̓)aIå6Áâr¼SÄÙZžpU|e§Ó´‹Qs0·£HÑÐæ†åØšúrÍ{ܧ_8U„Œ‡Væ’­÷õ)éëWçwƒÙ–$/çŽ_Þ%‡Hwr�´Œ{”ó 4áÿò£Ï¦Ì6-©šiÚØ——I.½ r}¡;/nX<1Ž¥œ{s4­aâþ!µ_çÃÓWÞ¢6²IÍLÙ¯5ª&™ñM·[d ø¸D“ËöŽ&€,M‚>–0tq½/Š¥%LRKÈ£xõÃB¸Fϱ!ô6,·W_úþ8_B¡ö…i§ÉWHYÍüU¾ŒoQ—§â8HÙÌtoséø”-d<ê{©\Qnzþ½NÆÇMgÆ”O�ª¹Â]Ö.X¢‹ÖÒl0Ͷ82 x™8ƒ;¨l¾4CwÜà4ŽRÎ*!¬!Žý@>õj°†­âZKÕ±G½D« w´äƒS¢“±>ö¥Zïr´B^}©ÉÒõ^—Éý»o@:ÕÙp¼`áükš‘Ýó¾Ü�?ËÕZF¯w�xÁ›ÉZ=u׆_…VB3ˈþgA˜õýq�s±wPAÆf¹aŽsÝ{8•ݨé£.—¼gúeú`6?„�ñ3Gرj‘†ƒ× ÝÁ:Ñ_ù~Oîk RñB®À§iòӈĽ(¯0o™›»4GÜÿy~7‡-þ¿3B#°õåP<×MåÕ<^vaN`0}¼ 0y‡Z¢¢qi½üÐÈž«/‡v´öÌ8íÁÍt¬ò„§X°’¹»qÕ5OðÔHèi.yÙéƒ |qí‚ÂW8Ûû¼S¯wõ¾X ¶ALÇ›¾1Çp‹$ õÐ[Šîˆ%‡fÅôÌàhÜC‚¬Õ±¹¼Å`¹\ ƒå@sîçŸÓwZ|Ô±õT‡À§,S÷x|WKg6ÿ£ù™¶õWMf,mÆÑ$ý�æH-Ò™°Ú{ø$óÿÜJýMó"ü)Þ\1çnî«Rž$óªMéŠÃãpÚ\ Ù' Ù%ûf½¸jn%9eÌÁ�zt„›(·ÿjÁ¦oãöo¥Ðg+ÌG¬íŽJ6蔈ͺXŸ(bFžU{ šÅF%Õý–Ž@:´Ãû` �Øx¿ªjä(]Œ'U ¿ÈrHÃ]pd¤‡òÎTCÆ6"{¤/À^(MÑcú|¦‚wî‚àñ[·1¹òË™�vît`Ã6Äø¸›VÝ‚‡»ŒÞwÔ‘¦ 0)müÑ(‹ìuûnƒ¿°ÑN¸T�y‹F^(“U¶÷²Š 8t“[Ób�˜ÄÐ>™ˆ@Áý ÇRÀ~“àÜeýæ ì1 c*Ö¥±Þ7TÙµÿdó[•¼ãb¬)ï é8—ß°ó‡é7¯â9äD³T.sÙ©A¦ëàgË&ŽÿšlW¬7PÛ Áಃ'\°ìÔu¾!Ò³f°ô7HÂPû²ŽÁ‘qÀí¡‚LhpÌÆf•g½-¸É–Á€