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']
RIFFH WEBPVP8X ��ALPHø †üÿâFúòg†°B !”5B)ëvVÎÝÝݵœ–ó»u9w×zî¶RÖ]rîe e�Ê>/æÿŸ$'oï"bô¿ÿÿ3¯©Å˜ŸCø8'ÿî¦î9Ù8ÙeërµxùIÁ_ ·®+S‡tת\}–Áõ.3+ØÞãx­–ûáCñƒF¼Sêp7tÖgÜî:û�ë-x«–°=!)½nËÑ è‚ux>­Ï¸ÓtCéò'€‹c½R˰ÌHººþjÏÕmÜíÈÇÊ,�y®íòµ%�¡Ò3–!µ=$µÁî”Å,‚àLÛÁÀÑŽáµÝ Klé½Ð•–5Ø ,OÅ �žƒÏ¥&à±¶¸çûRsæXt$Ñnßb>‡M^C–ÙŽ‡ÞA²{=0Éò‡‰q+ìö¥,þ&hSͯA¹Õ¢¯#WÊz2Ю¿ÂÕð‡œÙŠ‹s]Á/0O.½¿˜šr½ðKÆ2 ·¸6®¡±¾Ž´CÑv>”›�l¥¡638[Òs¶�‡æúE'GÔl:·©Ï¤�‰†ÏŒN4·•�ãÕ€s�c--!tú‘à¡jzÎõ$¥_–)Ž À#}":à71ïsHÌ{U§/#™ °ìãíóæ}෻ϿxÆ6¢¶íÀ¦w _V€R.ò‚£_ØÛqç´¯CàYý窎ïFŸ^r”o•£\MÁ~°RkpV;Ê–0£-Ĺ¡UѧJuá®N16i—»¡R¼Ö—’�üÂÎÎ9½Ï)&\ï/·¨}'Ðûi ywvGª«N4ü–”Îî-©±ó*‘ßnõe=´^j‘¹ò‡j¤üùXŵô1²šTk³¯¸^‹¯˜©¬œÁèÃóiY½ÖãO=4k$“ $)“’¤¦I§ßâÉ�ÊÊmß~a¾Ÿþ÷ÿlVP8 *0&�*‚‚>1‹C¢!¡j¬X ¦íÔ(À5û/äoñ�r*›ô»¼€dw£�¿Mü‡÷�ý»Ø˜é7øo·N௠? ÿ>ÿ'ýO÷ÿáëú7°Õ/`ë?Ð=[Ã{z~»z¨›ÿ½þàgûGùßÚO�Øoý~À€#¿Ð;aï§ËCŽÚìlê‰#ÏóÞ ”þ;ýÐ3þ_*N{7þ©Õ×Ðÿõ�cYõ> ‡Ôú‚M  ž—‚_ø _'ª‰·�·ÙAéÂ%´¸‘ñ˜{M‹ A&1pCåp&zÄÏy76'Ì7ð5к”öï–HË5§Í ›ý>úï·t¼ Ë…×°ö¹ý'É¢œßd׃íª\k�ÛÙ È%°óm&Mp’‹sê}A¨€þÿ` ŒŽ�¿Œ`¹Ö{歹—NùL|‹U|fÉ|�„Hïr¹ôÞ­ø‰µÑþÄyˤ;=¹‚ã©bö5GÉ�ÿ†ïOlØ!÷H1Dà 8$`CþU ¯)¼4ì¬Íõml¥�âJ,Äû𼩠‚�Àˆ0åsB[¨ÖßÜí4MüU3—)uZ¡®5ê^R®yªW�©+ÆúEP^î…Ž`¾d©5…r©%£·^qN,¯£¬]ÓM7ÿH}çÄ'›×–±€áÞ˜«uVÑnÕ)ä^åy‘ZêÛƒSu¬wlßÌ­ÁfúÑ–ºtбdÓUªß�gÀ4Ž»vË/6ª5úyylSfæ;OUã-\¨'V{u=»*ôÍU¶âw;Â@,ºWþ¼¯­Ù †À ¤"EDÆ®.‘”mWà>F¾‚Ÿžå¯‰ÿ£L(;ݤ§í¢ÉD"4=ðÀ=¨w’ñÔ¼´Ý‹éŠTy} ™P®•èŽ×ó¯ôà£v±)D;MnBi;k5¦(Ï×ôóM%‚ÞЧ?@sZ´mGú8…Óý´Q‹Ûg“{Ãù:Ìu f+ÏÚC€‘´/òóÁ/ÏŠ†‘QÏ éª*d3:åÑÝ„y†›ÃK•‹n?ÎÿoŽlLl•©CÚõ�àö�KœÝ''Xˆš"ìç/»ÂÊÅ=ä´éiÅ5 ÏÂù»ñ% ]# г‹­EêËk£É®¸ãÕ3ç9³nDD2êbÁ°>—v8 {³"$7à#Äêé:|g4‰Â/oùmf³öÏ2/Ú×ÑÜmùâב»Ÿ›â%ýË×ÎŽÓÈT1 œ‰]Û›„©·Žã~2Ìbì!–41){oÝŒàKd„ã€éû§3ˆcª®†3>4ÿånã…‰Wža3yÑáÁX­Ãå÷³_žAö¦Ãƒù4ïI*o[4”ªHÚdf¾µ™Ó4(Þ]CØïÒÇ(jèæŸ©¨c|[™˜Vô}ÍšY»£š±Iˆ*n·xOÎÞÈ~òÅû7[ÿÿU&Nf]t`Ñ×Ýñ=^wB95™~H®þ¸j2S�F* o4ùÛ:):‰yâ;*]-ao,YÕ(¨¥ž£GSØ&ÏŸÒ[ºƒ77‹×ý2=©z"\œuêRò\ûip sÔ|Ô¬¬éUÇÉ·óÁ8:-–kƒü Ù«kê¤È:ÓŸÝ>O:™RˆK~­ý ¥‡¯MÒÛÚ:qÐ}6^õ­þ¢6Á»Y_ÍŒ£öõg�»,)ÞóÁ°ÄE�>Ϥ×}Åb©ÊȨ†8 †¾·¾ZnñRº‚^Ú f ¿>ÿ G’šJ\Ï@íSôµ@-ÕgàåF°æ=aA�cX�;ÛðK°ãý]Îæ[ßëøJ67SÞ•Ü÷IcµDŠKC{}ËÕùbs~ßàg-«˜/ÿ_%U[|}šf·ƒèOFA®‘Gß+‚šðú¼Ëoñø°úÿ•Ô*>ô6"ð ”Nç‘dùè™áÛB,Û Š´ÓI¼B,�f‰°¯˜�ÕÊgwÍš«™Ó€ —0êæÙùüX“_¼hRÁ›øænM³ø¡ù}‚að�s‚ÏÉ3>=ðä‰ýÞÿ|^ø*8ów³?2Í¡ã"~=$ã‘O7ßÛ“¥…g›Aﻢ’ÌÒšh/�×UÖtéï¢ýï;hÇÄ!E3t@úÖzájS¬Ò�È[„.ãkÎ6’€“ùL1€D®?+¹ j)w(u{Õ?J  ùÕ2ÀÙ_y©¨óY1¿ÿĉ=»}Ý€§o¥÷±ÈçŒ;c!kR@s¾åQ |ŒÍwfÓ%£ƒ8 :g¥kÞ•/3³ ×_‘̉çÐ�='l&K´wg ¯¨GÄÊk3º0þÏüuD%ωæÖÕ�=E"з/>\…êù³ëêç¼eÌŠš±ÔÆü°v ¦F(ѤÑbA«ßVV6±+ËG(ÉíY¦?q}®°T­V¥» ªaásÍóp·ðsùNÌŒwâÁ ÿüç-^.Õ•EAòG ó%~i[vÝ''FçðëY|0­x©JCИW…ígÛ|͎Ç#"ƒ÷š’:(ï`káŒ9cšà̶‰KÞ‚D•Xxíºµ'‰Øý×=>VC°¹G�í+ÖÛDŸ1ò!÷ïoþ¿r�ÜFè(rxÝ4Nñ¡ê€bJ)}ÓÒ·'tð{õó–ðZå—´¸KÌ-c+û¸�1¿‚Œ´xÐ ü3˜—ù¿&“„„oh�^𥠄J¶ÿ;¯˜Ú·Áå„Nûuûø0l0Ò4‹sÅÖ+ÿÜ7d˜Vòà