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 OOALPH�p[kÛ“¼CIÉ0Ì@ù Àf]€�’1()Í:¥9bÇÛ™"b îø³u\òõÈÅv“\Y�˜ç]HÌônÁXS‰Wú &+oÏf³]Óùûÿ vf3 Ùø.Ç1ˆB¢!! îH ±€Nœ ¨¯ aæŸdI¼v_aÛ·êiêÏ¿>¿|Åðóð à°_Ô ]©ÿÎ>ö~Ají=ß�Õ˪·|:'ÿƒàûèÀ¿¥}t!ö°–ê]·±]E_œj PǧîæTåôØ2ï^G{¤Ï§Ö.æîú± <�AxfªÜxŪí|â ¨ïÆßÂ^BüM_˜æå¼€òA˜á° yå!µ–ê® “Nù¢$�¶«Fi-ý¥ý=Ïê»{E»ã%Ü‘âì^ù<°Su‘ã˜�Zj­Z+Âaò=úÅÜ�žŠq²£=†;êNÜ„xB'�÷³ØÇfp îâÌþÿK½×HÉ(!c-€(±ÍrÈn•SJÿ5Õ‚=é©íæ ãÌ‘wpldgÄÓóÉ!ŽŒ‰Šžê‘dÙ†ì`Çè�NýÕÿ>$AYwÐàwzVC«šóm;‡fKUÃS�n_!·<ý¦Ž»(°à%Öß‘¾CŒO!T�T«�ô�ÝnQ'«G>5¸u÷Tç»ÐÇnyÃ>?y¨Îy礽šq®È%Ÿˆ±ñhà$Wu�¼_bW:$�×¼5BÐ=r`è¯Êíùz2âÈêÜÆïÖÎ/ÁßKw·3�‰¯máù¯/ãÏïGòÊ|,rªE°«ÇW$L‹ÞpàŒ~´z¾§‡x:*ÝÉí�Co}]†ßÀxÀ7sÍM$]ö7M?nhXÑO2¢JLp›îå=ÇȨŒ¤50 pÛu ÍúKLäž¿æ\­è×ˆÌØfK†ÖR½mçÝßGÿì©?Ú ïå|5½BæÏÄÇHÒAo¸áb/2�´±›h¯äŠ2Æ) ÙôU}Ëœ55–¯^‡EªhpÛŒìn²«q8›~ÐŽÔ˜Pq¹4/ß ||·3˜¶fÕyÙbPH5´Á!Ææ†îS°*MMz'î4Â3R˜×|‚Î)<�–!�á(Z-%õ�°TÑw^ó½*pS'׬þõžseÿlÑ×Y‰Â±¤n1Âñ‚‡É>ª>z—ú¥)›røCùn¬{Á¥`‡Pò¿v!öšeöaÑ¡§°UŠSöœmm5ói‘•‹ÒØmb\&BÇù [KÒS.ôÒTHH Td¼à�Òû.”FñAj§²T”CU[r¿ó’’¹eìØó)µÓ8÷ÇQkŠJq¯N†&0ö¬I»ø $†"Î×j#t+ é°I‡�γ xåËy²lÿ�í¦çj2e«|—r¥_£‚I7Ø;oQ¾nqØUUImïÂ'é%˜‡Y¶§š,~�†^zÖ—8y[8”O­Ñìw48D` 6A¹é?ÒµØã{„wÖÍUIêa;¢g%Î&÷ç›õµQÛ,O¶(P<'G(q¸'éê~µž��¹þ¼òãÇú«¹8”³ýª÷(~: nèÛQáRÇ/ìr µÉgŸcéÛSþ0vXÓã;}4Æ9°2^¨t\ˆåp®áù±ï`3yv4°’¸è:ñ¯øP/âiD€Ÿ¾ö>ºÏUè‡ÿ¹ÿoÿ¶‚Ý?Ëžõ[TÄ«ÀÚÆJ;ùÃQpËý™Ø*åáZæ�ˆJ¾„ Q÷C÷8Ý|Ûn lI­KäÄöªkðÍGƒ%£BÆFÛRU˜€�‡ŽÊ¾rQï[åaGTzÆ ·Ïç­1�äÀŽ\û^˘P†ãÐ!~É3z" í<”À³y¥Ó½µ~8QíÆ,–[H[N{ÆhXÍÿÓ›OuMÆ9[�;a92Ñ×—¿òd"ä±9Iœ kÓú¿¿·k­sÿÝI¶ûD7Z¥éX©jöx ^K²&O�§.ǃIá<ÁóûEz 6%û5îXf×¹'�l¼�°úm X¿ ë¼0µz=%wÖi5UT¼;ß[Ù-ÞÑì@­c_ÜÉm:2~9Pûöe4ÇÂgb°óP1G¼Ý0í‡KìF›ñœ ò «˜éÃæw”¸—çY)xI¨e7Ó•¥�ŒÀó±Óä2ߣ�×S¢€¾éï¢R�Â$’­q݇’ôˆÆxñ,ѳ2ÜdØæ×å¦7vÔÊ–ÒLËé©R“GZäÑkT¯Æ«A€»—ÍÔ£SÕ|ß…ðc’R�ÜÖ¼$¨.R’’_P¤—]ƒ\?ùWÓ\=Šõ#>D£Ñ=ŸÍêõ•?¢'@ÃÀXtpçÆßƒŽL7Í:ROnoµÂ¦àd˳fIÖÉs n˜mœ³i“nvâì X�UÍ2ú[¿-½ ��Qä:Yc8T :‘Í(kªÐ&< û™Hµ0Õ{jgàeëΓ!¶µ ”ó®ð2Æ{LŠM©˜Æè]RÁ*V$1y¬Ô¤-.|­b¸sñ�ÝÂKý¿¯Õåù0¼?êlxè-Ê™>�r¦”²—«>@pÛÕ~Ø©ÒtϦ/aÿ“¡¼¹ß€õàØš§8ÔéWâ뼫,q¶*;¯=2ïm Þ†½"€„~ w­¸ËÈðQa8«�I˜ŸâŒñ¦r›nM85øZõIt[ës‡dª�¹ýÕmÆ„ÛÕ˜lɼ£#ø¯s„� ¶ QUAßö,hѫŸ@”¡ )‘_[?ÌŸú£ý [°­\2