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 ^0$�*‚‚>1ŠC"!¡iå` ³€iHíwãL-®?ØP±Þ«ßå}H~œú*õ€~Ñûþ¨úf~Ú|uÿ¥éM˜�Û‡õ¯ÈÂi 'ø�3{ÁõáÃ|[Œ)ÿeÇrúÞ�#3þì0BÛ1ˆá'„³á“€ Þd\¢ÔxCLJ<<€®¡}säí‡VSê½ IŠì8‚ÍÎcwV/u¾7f8*}§ª1Ò?™=‰ÅÏ�s×àŒ+ùÅ.à�­C⫈£oS8ŽhJ ô\)?BUaþþ•™ëª¶½ºéPÍÌÐóžmâð–nb¬â‹üŠû°Š&¾,ÿî!¿í`‚íïùWõÆx&3ðÏþú·jþ|îÑ|ÐOÀ˜�8ô €Ÿ[üÌy"œ'!ŒX‰¿w¬4²OV1ó=“UégC÷öws,âý?)öv0V"d©¢Ñ—òŸ²üýþ‰ ÀAÈ/±;S^~ò62ôòãíÙÖgÿîoKÿcÖRRÊ>¬;‡ÿÙÛy“BÃf8_™wÍ+å…“ ~cŒBTvÐê q"§Ò]±[¿VyT÷FDĬöL¾m^lÄ—.Ðv� zâìîјnË?¤Dô`¦nÖjË_AUwkÒ”J¿ªe»ô1Ѵħ? J³u‰OΚýPo¹÷{ºo·M_}k¯ì6˜6mٔĉoI?Í9œé\š}"£x2u–¾±eòDºö¬÷@q&°Eý† ÜWæyZ`¡5t“ô{íßôˆv€¬òÑ3™'à·_ʉv+To¶5Ús†,¯·v³ç[è5¹þjoo°%‡7ý9ñ›£XÌLv8üõ&(Êþö<w#æTò­ñ„®³Ô$| ‚©Åºb·_ý&œ›WŸÑ|Ÿ¿ ñÐQé´Ýû¢Üþôâ¹úAól³ñÿj`»�Õ·°¾Å(.]$�Ÿ'R|XêÉHviHœºøìþG0ŒöÃüÓ4G�!tƒgÙHðßO¾† éÒm9�ÍžzóR4ß~ìDÁº ˜ XÏÌðå‰d\Uk1¯fyˆ“H †ß”ù*6’çÇ4ßùøûú8@ó' Û ˆà �Dªê˳wÍ�GvÓe\sŠ¥½dó·ÉŽïƒnÜ<Ÿ?+–È}…wÖ"ò>5" ›rÎÀØ#r’¸C÷Èut}{ân�ÄóÌ ¦f eÁ}à•ÒzÏ- Sg‹9.ê,t¼‡º.Ôaq)œ¶q‡‡”ØïÝü7é@îÊ c‰œ�¤µÉèÐ(†xfõµŽQî§^7’û‹ÚA"'^_îiPO‰”ܹá?Zl�q¬€{D¢è8v\§eä?Ë…âcã·—g ÷ óg= r�ž‚MsmuÄ&·X!Ò>·Ï�‹æâ’}ÁÔt*ð²S'æáþ“[^ߺbVü�ŸZÁF…�ÿþªK«!k_š¦›2eòǤÍûv…ÿæS¿ÊÊHaˆQ½ž+Ûñ†Æ=²ÐU©]ð£=ñcGŸûO†dzêž­À•$\–ÆF ¨£+¨ •-½�±0ˆNÎ÷.QJÍàã§VZGXç…ÊOçæ |øž‡´*m‚^�îb¼ªÞÀJ­¦Äþ§R¼æ•�IéC‰Þi2d�!Iþª °è4Ú‘/ß×4i@îOWü%T´öí T¥f„'PY ðÂ11Œú}u'à9ôµ\U$áÕZõÆ.æ¹}�‹àYgxtrÈèx}…ã]kâ¡‚˜ÙÇwˆ¨OzÌqîëcïNxLž!ºÿ»¹âØ™ý5 ýœƒ7ìï ?âIèÉè £›`’YÙEö‰é©wþ¹A³ŠáÙo�:¾+9zû>f (c "®±ÞCÐ÷º1œœ]‚P]n茺 ﯋ÓW›Äõô<鿨›LºÄg¼Š� Ñ2!¡ºN¢nsêâ³Û§g¸ÎœºGø Dí?¦Å kMûMÈGMW+SÓ6j€ï¬<ìxã{n¥´Ù„ h—ûw”Lì|îÇMÅžŽ¯ÈiëU,Åž"#øaBr¼Ÿ áölc³VªâÆMW'jIr¬½®nö‚Ê +Àó€'NmC.ÚûÉIÕ3מTço�ywU<’À�\ªTä úž°Ø�[×P§Þk�ðÄÄÝD™»?�ÊÅø–O ÍßñóÐ=ÅK!Ãa§èÅ#˜Ô JßëüHa1f´_U™t!“˘'l‡)ç=`"«Cª8­æîsv#¥Ø�…- h:ÛZÿÌcX¥¦@sMåëXÙ[Œ í‚În)S¾¤KNÃÞ=¦[Wɬþ±MøTÉòÒ™qJ]Nê9!@‘¾éè<èÌŸ‡éÍ2‘ÏÓK