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 ¦ð*�*‚‚>1‰C¢!‰dÞì‚ZPþ-ˆ ÎíÝç™ô¼#Ï¥ìoåixQóÅß=|9x×�U*êüf÷'øÏÕÿ¶þFÿ?ý»ø¿û†~�ýB?þ7ýkòƒ�´~ü«ü'æŠï T¿Ëz”þ]ýóó3Ñ›ÅOÂ}€?˜ÿEÿy÷iô«üý_ñ¿•^Ñþoÿ�ù¡ôü§úOúÿÎÏò?8È}?cKH9�»2—j¹ŒZ•fªÔx¯ƒ ©û½ç•æ±m³éè¢%”n;8÷ƒ1ð#Åæ{ÕÁV¡i•š¶[w$°„£æ(õ<“ ¶zoË…mOþ@Ôá!ÍDxœ,Í$K »ÿcfÜ62u4/׃õ;ÿ¤×ré/õiwûÊ�Äa¯}ܶó”€Ì}PNH$܇׶ [�©â1Î5v•cþ@µJÅæPò_‡ÀþÿóËÔÏï>\‹¢6IÝGI©¤X½±Ãy÷—^ד²ŒÇÏJH ¶^ñ¼3³‹éÿßžy~‰îü°… ð æ£ÇÞŠ R. ‰ù­?bá¸ÝÂã™É"AÍ­$T¹Ai]Ï˵9sª*$s¢†{›¡É^æ 5jOhŠKRP‡¡F­ä7éÜ)'áï~SÄ/ã`ªÿñ!7)Ê–ûÙi¯ "L×;j8ƹþráìSƒê89¡ò¼$žïðï;ÏØUøyûĵÓÄÃÒ¸c ªŒäüÜ©WµÒÀM:RÇ)ît(Õ¡ Z°Ä�1€`Aؼ9àaÉ +Ž kð£ü$1M@Á)Ûx!eedèÝiÚ˜h¸�!S¯ÔEД¥,�×ZÀ¶2»ªDbC¡ Á>ymsø�ÍäÓ�À?«AÃqàO–OI‚'¿ý'æBg |ßÅê#Îã‚€<¬áÜ¿]œøuaA,{G{H‹Þo6Èu£)8hj°ƒ„¨te£YïÅî»ïÈ™ùóÓÀo}%½”ÊÆ˜¶ü}.›-œÙ ?Õ’Rã êŽ’æ:ʦ©’WdÂÙ&hgŸt«hy¾1Ù½47§½8¾ëâ¡ÏÞ)IQÌ¡×?;²½²šåPžKu¶u 7Žv,Å5áãåLœ �Ðë#kž.õÊ[éÖo)ùWØ|óVä|½˜û;ᨚ}:ÎÇ›/&h„~M•¼Î2~”;|^'¸"-ɪÂM¬M@ §ù™ˆ©ds¼‘ÔæÄ�¥äå/:*6ªNýe.ÛMK~6á‰þ+!°7�µ°«Îè]ò=Ø l©߇ß…qä¬�Ú±3Ò ÉP�ý©è"Ôÿ�5Aûà^ÜȢȟÓY$½�ɬgÂ2Áè"{'“zczƒä‹;ç§PR ÷o†e<=Tþ—žs’´%,o Ý é$ûiÇX`šÔíYl˜Š¬csôò1d01ó Êãž·Ö$T&‡bV}FiöKüRDr�V¯‚£ JÖ&yPà®ûÿÄ  S«Õ6±C"J6Næj©9Y|÷ÿê$†;}4‡ñä­ö:ðÀ¡_ /LV¤RdÙüŒ®Ü˜íd‡†—beåñõR^*Õ6ÆHOü_buÄÇùÜåM ï!®æÃ�ð¼½ÓäkÍÊ.õÂæus!hÍÒ]$@d«RëÊ? S8<=*¨*ŒM/<&Ìô0U q‰íÊÕd³Íp€š2}ÆÑš8æÐ$˜ëT†�æ}« Uœ·ðÈü_Í2Î8vAC ·L—ò™ÐØÍ<ÿ¤o’'æ°‡LÙ’j.üð8FàÂr˜)ñ…â´Ô®N÷Ä1ŽÞ]‡†“Oó~¥û 3â³Á¦Í·ã…‹‡ñƒðÒà3$1$›@ÌOEˆµJ\½‡á"aÀIDªúªÄ]ªgµ°Â³k`ûOkö®ª±0cÎ<„Cχã#CÕ4èæ€$grà—j󲌾ÖІð^wBÈç{±µ7Ù䢴ä >Š&ÅhìKÏÙ'Eè0~4µž¡ñû×eÒVäç]ŸÙ›ÿ?–8ž•(³9=”�±ÛÎô?œ?ˆ Dó6ŽLe�´·¢Çky'Fø1ÀýSÊk>æw&ãñ•q;ÏÈ’íúk'(6¥ÓÑ’è*Q¦®Q�õ¢ã½†Ãf†‡¸Ó¸x|#tŒÍ|5¡Š¿€ÿ›ÿý<†M¯ÑãYÎ¥¶áä.x¸3^Ìoð©ÏÛ• âð^­æü<Ô¹t·¢ueÜ´=h^ˆ·õãº=Þš—"nÝ)í¥L<ŠŠÆ9‹˜&w�ûQ}L‘¯àÓ�¬ÿÓK¯s•µÄe‚áÛQüÉy•È¢ú?矣žññÓ¡«8ªZ}úÇáï3¨[+'±K¥dlz…’6üÐÄ0ÿ�$–µQñ”uþJÀØ;?;PÿþË«ôëÖ„×È+´Ë/•�&Ö«8Šzö¤ôsâ&z]ÿÖÇ]€¾I ©z³ß{ŠU@,N ‘?yŠ×ûŒrÌe©óãEo$–Ed=#ûcˆD…Òù†IyhÌ93/i!6y,$èÃ[•ëkÔÃ{«åqÖ¥ áø…vÒȱ¿ÎzÞýq~@Ä�0{ÁðU´'4þ„Ë€(Ê׆IˆÞ5º†ý£i8“¡½¬¥n×I¢Ã !CÈuS±+\`�4=`ÿq¢K4u~�C%ž“Ý«ÝE)¸+x�祶ªw¾YÝ!€ßè€ù^–uÏ ê²‚�8mF¹ÃWÇúÑ×yŒr )„äÄx�c7¯’È©®½¦ÿ×…‰\óà