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']
RIFFF WEBPVP8X ��ALPH{ GlûìF{ÇqDDüDTDTDT|b–ŠªˆšMTUEUQQU5KU©Yª*ƾÇìSUU³Ï¨¨ŠYªf©ˆª:FUTDEDDÄñþ‘Ó%™ùþý¾ˆ˜üïÿÿ*ú»„óúúÛ¹¿^o¥â­Aët…âü_o€ÈWÅÚßû0'Vj©Y{bwwsPnììfŸY¢éïðã±ÃRû°•ˆ” v´fp—iŒ„Ï´Ëp¸ÜH©v¦k}�RÀç�KsXˆèÑððÈøÄ s�–pÓ\ôìjW«·ûgdb­törþD×Îß(B䇪¹@‰ƒ'BC+=ÝCR"¬gÃùÏÆ®\Ù²Ô_õ®&�x‰®Viìbš¶t°fÒYÅ“ "ßòL_\Û´ÕÔ‘°Hs"¸@žv8€eé  •)ÀGJ Û¢%@`ë”÷Ú©f„*Ê8 Û¦eA ¢À²�ŽÀ§œ'GʪI³äÛn�×Z~+ñk¯®.)Å�v¤B[íâ`‰výÜ‘E¢Vp�”RìžÎ ÊÄ®Íw\o2•Æ+TŒTÌ+ˉG6=ºß±‘ úH¦œ‘{Ž|ýÀ2tgº]8æõžÑëý’$�ÒJ’$µó.I’$ÀÂ3wÚ8 !üäňÕúæIÕ¬bZ)]«›�¾†ã»[Tnv­Z¢uôWt¥Î*Dy—ŸÃ«ÞÎb±kåçÕ¦ì¿IÃæ8iƒ¦¦)áÊ6Á™•*é‹ÁGuÄ�½r†saJ¨ã™pLƒîLK–¨8ÃãÄ÷ ’ô>é¬�¨Ô\z·SWO¸À Ýu#N•hÑõ}À�&RN�›f§µŸ^Í'ó5›Î^TkÜ,NîGªÐ +þ¶Ö�~•ˆŠÏxØ×(¨¬ìˆM®/i’µâÓ´©S�ÑÎïú´ g3¡~MKDŸÜ#:v=)¢%Ö:2žÕêL‰”�ÚAµ[*u­Õ)Í[/Vχ‰ŠGüÝŸ…Waéb�„#9ŠW™‘Ë>ÀˆL¶ëÓNþDðìE-8Oðì„Á9õiª„¶ó“Ãë»x6âÔ¬‹ÉXKŠ(ó}V0mÓLWfmPˆ{Ƈj䨗)o`z¦P°Þ!š¼CSk—)gwê'e’›ŠÀæ >Çr¡Ÿ_´9ã‹ükÝÜ‘4½1Ñ-·LI¦_o~P«±{èS”(˜3Uh(Ñ÷Õg¥A Z©rC«Y¦=¸;çà¢JœÊ² ,¶‡Øx±R™^›í»R”(doù¹q¶6†ïnμM› ;*†"}Ðà˜c�iµ^ÊÚ�ÊÛaÉм×Û]RîÀ¡P!ÖÈCݸAïÐ’}g[/‡×Ï7i³ýÍTÏÔØµÚteææ·Hi=À,c†¨à„§DÏ<Õÿ€V"Ê ój¶U®nœ?±A”¿!`ºÜñª˜2.tÇÕxk�Â���§JãêlêœÆ/R±iÊr ¢Dåk&4|žj/Ñ=Qnͨù'F{¹ƒY–tøÊÙê©a›¶ôxì!pÿü&Ï^ÛÁf7Ì%e¼yIœ[´äèw“'éQTÄžñ«CÚqÞ :HtƒGÓ.=`)Óµ*C–xàå­)§b+0¦Ð4LZàHzóv5ƒd¯<zvîLaaÍ1ŠC¢!¡jLì ¡”©;j¡½ ò¿Ænò*ÇÜ(¹˜·/Àü¾$›ªßÛý®{±þ—ìò¯°éoøHÏS~`?”ÿ5ÿeþcÞú'øä¾à?O¿×føý8ô€öô þ?ý�ÑÛö[àGö¿÷GàGõçÿ·ï7h¾Ô[M{XБæü„üvTrR<ß��5¸½�h0HÅÅ6K�) ! Èóé«Ùµ^—6é‹�´ÊO£>,T'v ^Éçñ«#®¯G ŸÚG›òñÙQÉHó}°þþÐ%~$3r?P±„ßš3¨ Ž—£ªG:˜õé黸ôG@W—˜¿t@¾ªp×ð_œ'¡‰4š{5bâÈoTîk.-غ§w?èmóÿÅJÈ‘y�•¨[½ÛÍsçdnCCËÜ“kÀzÕïŒ:Ô[’®D4ºUJ3ˆõÄë›:’õ§Òb¸ó”µ°ŠŒ›©’)\¡«¦²�>±h²ãÐU’ƒrDÝ% Eœ8ˆ¢]}kîk·[ ’Cͳ,�rZdl²\&t³X¯&p·ÕJ*² .á:/�ë¶Ø{Êk]W{îö¹¸}ƒ÷,ÐyAÏ�;™·Ü¯/nØþ…ê=�”‘‡ŒÖˆŒ,ÍÿCí V×Þ ò†@—+G©nB~Ùªsl¼?û*}÷õ"¾V½Œ Ñ–@•‚z¡ŽaœTßbb`ú¾á5(sµ¹HØ?5D«»Ò —ÔîPIP![ •fŒÓkIøÆ¹˜ü÷­´ÿ…?xnG:›;KMz¯úij5ª6ÖBî�}¦^6ììݶÛâj¼§…îæ¼ˆÇnìÕ;ñl¶¦–ýs�ßÇEñº½!š&.Tq=�Íß»2µ ‘P«îîÒónF‚ùeº3MÇgBiÇA~5÷÷®O[ÒÙ%²ë[5œÃÅ".p+´Fÿre#ôœñM_ÿ2 ­ë3åC†�ŽVˆuÈ›å*ÄdO^—HJðŒ>“³3·TŸÏv%ÿÊÎãÕN…×#\­¥î>”.Þ }Të+²Ô«ó¦Þxþï¬lͳ¾†é¢¸Ø�n›r¯h R€ñX‚izˆ©ì`®�EÙÏN°¨Y–´ÆÕƒÆÄ¼®™Ò“«rÞ®`€‹Â;¹ÿ¬Si¨H+@±;æ(@6ÇaÑÇÞn›ï]¦bÃѸ˜jîˆÊŽ::jc&_åúbXödC€µên&‰Yžë{|ZA{°Ž.£âƒ…ööBfW±ÂlÈ-4è™x<úÐÂý'3ªÖsh4‚èì¼½ ïœÖÅòi>Ê[@çµ6tš2 k6kˆ1 �{‡…mÆŠÚ9¶èì¢2¨!>ÙtGm|ƒé%´5‰'w*€Aʉ\*[ÊgàIÈïØ¢ÌdÇ͈µŸzf1Z”oÿŸÿÿ•�þþ Ùçw¼±çCÊ&¾B€ÁÂøÛü\øíµ !¡xœ°¼»^�Ï×Ùò'ȷчë˜Lˆ•˜@