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  P2�*‚‚>1‰C¢!!ù�ð ²›€TÜ=¹¼u‹Ge|À} ô-æúwÒÌ_í—«w¢@ÔÞµÚ¯`¯ÙŸL?Ù_„ïÚ¯Û€ßÕŸüw\¿úó|u쿪ßñ�1×Çþ;û?ŸŸã¿<ãôïêëîØö?Рפ®ðsÔï½á}À?•<ÿOêOúOñÞ)žAìüúú_î’ŸKÃÿØÿù=íCó?ñòÿÍ|ÿ%þ�ÿûÏäßͯ/ÛdïØ¢ç¨^<¤@J¾Ùz“8^}xh–$TUe ½¼a>1ÒCœG–W{½b]í´ ŸL©ÖYÙj|=ò�$ÛåmafÄ[¨³h·|♬x¡|o0WȲÖò×½8v æ’ü«Ý¹„�ÓžU±II§#þªøÚ)©o ÚiêKv™Xúš÷”" ¯¶7‘@̉IØea=V$<”‡êù‡¾¥1´EÞW�c›æî­21J-ëöÕb¶Ük‚¾'v Ÿaþ)ý9Õ>ìx¿›'>]¡!²ÐþÿóòÖ_ÇAÿl}õ3æ°Ã�è»%™�ÿªÍûöxÀÒkðÍ@uwJ=ßÙÑç¿Ã&Œ@¨|ÿÂQvߢ?®œ*3AAˆÚ]H ¤{1+·n»ÂçV¦ mþ î¦5îÛܲU:ËYó©˜CÑ1'b›n¯‘T [g.aüðê×)ãG<}¼o¡åKvÙAð˜J÷7²”PFâÖ�wÿÄuºUŽ_Ü*|aË Ð|­L5¨Û¡éȉ/'uëæÜÞc}¤j¦%Ç”×Dròþåï „m÷ï†Îç5�õ ª3¶)±q~ÎS ¡[L=1=–²t®¾ŸŸ¹PCîÂr´]æ«•r9›*PZ&ówë"fÝTMÄf•®ƒ– ²¯u‘V;è–}¤â’ð�³¿®4ó4Òìº1 $xt )»µÚi×à�@ÿ=Œ_G ?Ü3«ÜU˜ÏsOl{g¾Ÿzù!=P‰—ƒÁ‘Ëv;ý�™ÇšÝUŠ‘uœ5þ~4ibàÍÕb"ø Fkú¯×…æ^2ÙÀùÐÓ;+M àòöàA¹9Å9DZ–pŠð)±Aå¦þøK8+MëGgå¾Fj¦#ì! �FöÌfKÝì#„4qðZ!u�åò £Îý‘°a þéŒÁ%•êºùá§#"O?õ�Û©E7‡âïœïüÈfµ1&Eø  ¡% #È~üWm•^¸†ù³²ŒcK3w†QÐ ‘õ׆Ó¿ÕhágÔ)!X î)úH¾žjþ>ó.c>ÿ7þ|1ÂÿEŸ%^\9;‚°•8]Þ¦öîutê®aãƒÛˆ+GÝEÆÐêÎãȰîù>7ÚŒüZÅeÍkÍéa0 Þšãwtö1³h{oômlÄ6)÷;Ê—?¼8R0G´ð©–ßæÓC.Œù¢â•£zD–£rNîôÍ­îý2MIÅ“@ºœ•@û/`ayÞ»étiÊGîð!H:EÓ镸þ)lÖ I¶¯¨#µ¬&ƒ~ß ¦ª§r}u_&g|–òW½q˜\‡ƒ¹¤zÏú�…úÛ’â“ÆCSÿ 'äDÿüÛ$ÌTœ¹�ðoÉ&®sˆ¤î+mQÌÀ·ª»hÆÒ¥ÂÕcA“²ë:Q>Wg·Á °‚Ðmç—ÓÅkì§¢@¹š®ÂÎ�èüÊà—wÏå±Weš¸VHïÆõG–’A½Jц.ú<»ùµŽ�phDÄdNóî•-ìÿg cmF¸£©ò­‘Î8z^˜Õ™õ\öqõ¤³ÕCz%—¡ ¦©•] D�Yñ ¿»LNhi&Æ8ö áF–Ùª{ÏLkGSª¶Q\Q&KötA Î&/öŸmz†ÊóîFÚxIpj—:�^Ì®Üã;Ý)ÿMQ>ëîDB[×€¶X2õµb®‰Ðz/e«YwýÉî¶önèƒ'Ï<1‘3rv)þ®¨ö]=«L8çªÅ^ÄmÕ•–[·âÞ¼˜æ 9Öq<¶’Çï=›3Q3Yßr7 4îtÌÔWúCÀåz÷SlÈ;ñÔPªð ½ëy®üÑpýåŵo‰LõÞ=ÜÊ—znr”� ®ÑÊïî>÷ž¡áóÝh=Àt’“3^ƒµ'"m“Bö·«©Åwz˜× dŒé ÛÍ-Âd&FÞfµ»òË3UV‰^oŸJÃÇIQ>c=j#Ìq^‰"´N¢«@„ }L‘ÕÅ�Ó’˜p±�®d>�CÐd¬$�D�½ì/�Ö§Ò·ÐÉ|}Vú>JwB¿Ù¢|…«º/ÆúĶ„ÿvÆÊ¶Pøïû|߉$ê,í­�j\+@·ƒÙ²ÕÈ^œö(Mêg| è1ºJQÜB¯w¾wt~šÿžE~2%)ô²Ìó M¼¸c]ï{+#OûOPPdf5�:Ž®ÆÌ^™OÔn^ÜQ¹ýUT™‚²ê÷ø’-ª#êp%-TC·™ŠÁ-ÕÌ‚Q*+­¾7h~PùÆî„‰åwTû€ž®TŒ/tµøcˆäµKloþNýŸògL½ÂF;°õžƒ —¦$r©¼6ò'�ŸûrªÅ�‚æãRÔß»~¾;#¬ò5‰‰%áK—é—Ŷ®u]&‰É9ªµ7›jÛ¯c-Î6á¯K¸fÃ'MóG g\qÉY)Ó/6A’ªÕÑ¢§_F`gôí–p¯¶4Zc6|¿Ð~É’(<ü¥Ñßm�ïÃþ‰óÕƒ‘TdŒŽÅW:}DÞ¥Xö6 4æ8‡¼¦Ø¼õÉgcÇšÒNsñ z˜œIVÇýbçrËqÞæd@W㉣î…CMßײu°-È#cñ¹¯€Þé�Ú� Eƒt*- >ðEK Aeü_ÓÐSpƒ4> &Üã_t÷®�çs1qžÕ¢0pp1Þ†UdÞ§=TH¸ŸÁ°Ö(~Î{Ù?o[ Ö”ØP•ýé½V£�uLÿ.ü…i¦Ô'3ã{»›$±¹X³î4­,Ó»®¤j¹èÂd™õh‚-xx¸ º7AŽ�®uê¦puÉ#™:*ö†ÜkÜ>Òž}Àý;ߨï E¸Šý“‰iíNÊ�ðnWÚ’µ¹pMÇÌ?ñ µµÝ$Nø´ÎM÷³~$Ú±)ÃÆüØ�•ÎCH€®öþÿê‡Ðí`LßaOˆóžãKù®Ä?ɽhÓ/#ÅgJ¶O9d=¬‘d}¸Li_÷ �ÌTFw¨Y�Ü‘A¤¯uÑ�íH$ü²Õ ýJ¥ìpÀ¨5o…$O–¼ÑøgQV2€ì¾œM^þÎ9é®2ÉÖïAâJ äfÙ�Yd¹Ðnþ²e2@2#U,»Í�r%´5)R„)¡aK^¤~ŸåÁ0˜"ZMi„}>  b¾hLŒo‘ÿÉÃ8ÿ—„¥”ñ¬:�%Ž4œØcâ’eF#T%üÆ•ôy„‰¬G·”çÝÒÀìÒeÞÔ~?ERŽ4ÝÕòÚã`1oQŠ¡—žbb½‘å8a"ð¾ûZ¯áø ãÏ´NYž£/éHPe–mSž�`v˜“¼Ÿ&ö£‚¨˜à&ò–¤�½Œ½"F6Q¬ÇG­æFºÜ>AæâÒÐeW(=ªYô­F±„ \ ¾¹7=¿7M „f*ºæ’lj`1 x°ô”îL) œkÍÄCÿ(ov«6Fp¿½úðÏóÍÒ-€