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Š�ãl›"G¥_¥R©Ô,™Ý*Ó€™)b†°#†�ùŽÑb5'°6b 1b&3ÛÕmüw7›ˆ˜ò·UÖ3:yã�4$ÂEѪÐï#$wî¶Š Q¡ƒ#L_@éû#d7ºÏ•ÿýݽîsÈ7GoÚ‚å#”rØÂé¨l,!}@üV¦57°:j `…{hu2Ðð²#´û„NTà5$¨® ¯CCÿñaÿ…ýVÙZV…{hu[©Ÿh5XÉûX}MÔ��“XÝŽ°à2õ3N{-Q†…'n§�)h¨#Æ·ŽÑÛBÓÅ5„TùÏñùÜ”eP¢cŽ˜äÂul^4øL¡ÂcÒ>bòûVn@EÔ ¨¡|©…³wîì!¸³ñ|©"= ¢ ˆ50#ÂLNMÏÌ/«A°¢03=Õ§" ˆ]`†ŒQ¾ÔÔtS}‰qÒ`@ìåcªÄdU\„K0 ç`Âá‘(J�C0 ä(çGÎ(�‹<ÉGVP8 ú Ð0�*‚‚>1‰C¢! fJô‚R� Güþ3rtôìËÜ�Ä?æ?.¿¸{òõSæú�þô¯²ïò_î^ ?Œ„ÿ�þ°ê°óoé]d_Óý@?[},ÿaþ ÿhÿf>™€ÿÛìÿÿ]Wð·_â?]�v½~ÛŒò+õ—íß’€ðüoùGõ/ÉÎ ùóõ¿×ÿý*uí÷ú/R_É¿½~VXùüGˆ?™Vÿaþñ›â�üïó>r¿1þçÿKÜù?ô_÷?ß¿wþ*½vþä{þ»ö,ú…¦¡¡Y€ áÀÐ*ø·ÕÇzÝo\õ§[Ç(‰0t£"@á ãóPíTÒ?Ò ¹öxhCÏúÌ�[UÛ³]?EÆ d] Åx½äo'$=(²1&Ü…„ЬÔÒ 29@mmñma¿EòÊ�Y|ͺ‹`–g®îfŽ1ù%b8?Íxû<;õR™„Ò¨Tk]¸Kï˜�Ã΢r8�É–Ñ!÷ÒiYu3€þÅÇFPθX“�ŠjTz÷Í?ä�UW¡1!û¦ˆ£Ô íöÞýãò¬+e¦öÞµÔùß�è“Ým>b0þ‰Sïc\9IP î]ãèϦH£¹NKÛ‰æÁ.ÆiϻՉn´mÎ?*Äõî+Œbßà¥@Vœÿü¸S5·ƒÿÁN&›UÀƒÇ ƒÍ³·�80¾_ï$„K³·W·ÿø)x¥³¨l}jàà3�ù–·—-2ú9�)Ñ×Cj0�7Æ©š,²äöÒ>qS ¡v¿ÿ¦³Ízú»§,¢p*]£Ù¼üÀ>³ü WTºðÿeZt�âÚÞLr%TQø6˜¡ª­÷ºq‚ËÈìÙ�.íí-ž,�ƒY›ÏB¹0~pJaxÇ=‡Z}ÄnÚC[�~œÿ¶�ÈÝT‰,Ž1œF•[fy\F�ßVŸ½Ü û+{à E^tRΈ¤¾]ÒÅ3?¤o-‘DÃÜõƒ˜åˆâ|}½‰mfŽîòèI™[Šò¿�ªr�KUE$�G´*¸X‡Ã�vRáì×ï… Ëé4(~ÿP›Ä þC xOÓR›–‡Q6ð™¤hèa¿¯u³¬SgöyúÀR¨‹—WDØ­}%}¢Òç5Óh¹ÇA—®�òtþMÐ$ùžåÿ‰œ‹´4Ì@¤Ÿ¬&WÚ’^U€sYjÓ³Äe'ÿ.œ´ûÓô·‚«€ýx�?ìåÉ$k§:%8m †]9ÇàV&þ†‹Å»û@OËò±yZ¨E&Ÿð»¨¶ÚÒÏ]y¹xîôÙÆ$ÏšŠç÷øõ»Ëñ¨æË»½Ô�³ãÿ³ 7ý;ÒS„B¼Ã�ü ˜Piׂÿf[Íó,sZ0Íå¡Ö•y�cú3'Ë ¶ˆá¹}‡8�m±íào‘ šÀÊRiGƒõúä½áºä‡ËÉ©„º¸{îgžÊÕ&™MºqàïkµõA:¸Î0Ù²ï,Úš`”&¸ÄÖ°qŸ‚7PJ_ÖÐ:%[UU^›×lA°¹åºôRïËsPÑg……�†XåàÝͬºt(ú\ëÛËÞ÷·tÇÏò O!Ë@“BbmŽË†Û9ìµתݣ1Z˜`m ˆ#G¼sê{G¿ Ú_-êà©Hµ÷ÉLz-á†úE7�ð&œèз®÷»¦M)×c‘ð 4}ý} ýH“­ÏÄñQÚh¾TØ%ð«÷ØRËÎ�<ÅDU½*hÔ#ÆöJàß6ôlòÑÖû³ %î‚iФgÿI)£Ðl‹¸¨‹”<µkÇäópÅ‘Ž"¿ùÑÿê�Õþèf™TÊFgí[î{Š®Znç Mé³Èï ·!‹Ù �Üžv)N¯$\SƒRÑðÓ˜ñÛÍëQÅg0ëz‚Èe}ø0„ëY¡K@|ïK™øÕ>̨ÈPßSë¦=sL=Wï Év¥ÊÏ¥&�u®Q¸±¡/¿Ä.mƒ@³Ô’¾¶ŸË`?jƼ$^­ËÑt´Õ³(êê:‰œìE ?ý¿8jHÞþÈ �6ÎÚâ#�òŠe¹µV#+¡UjYŽ1Ä[Ž©Tù$‰U$ß¡"é¿®èב›R¼èÂhf¾Œ%´™V�ÏûTWEÉýYZ¯0Ý9ƸŒÿ®Ý„|�b°(BôŒÒ/¸s<ˆ�:´Iª¸¨þxÂjõE�I¦ä¬ŸÙxYëÜr³%ªë“M”ï&Ÿp—u¬®üÏ&p øÃ©®$"(WâÃ4£ÆÑ¤oEšaNa›=5ž$ƒøFškì3òÓ]*¹!ëe¼�j—i"¿/›<1Ƈë� n†7ºÎ¿µÃ9´Ž–úñ§þ¤p-Á·Œf:MPI´S<2¼šþ'}T|ÕoÄ?ê r-†Ó±ÍÒ´ G+ÜŸßÊépnæaùêXP“ÿˆ ü$*ãw¹HŒÝÇGnIºŒ½//Š +÷TÌíG1ÊèW=Ôºd¯xx¦&ñE‘Á´W�l?4Ðjð7 ZºFÊìÙ± ptŸ’Ý×8ýÇ)ŠBwf¿2‰Z»¤SÚŒLÀ`Rt;sõìŽEI�Žû‚ú&.@C•mž@­«!À¯t`E–Îü•9&�oT£ŸýÕM]V—òª ñº§âùV©K_ЌΎîÁ Žÿ�`Øz”>Ì.¿òŽUs„JÇGÈ/âM˜(_Ê�F2 †ØsþÈ,h`Õ1F¨}¬à,i>à )X0Vx‘hP†Añ;Ñb™I)¬/LÆ_œ¦©çu‡�L›ÒàvÉÿÂ.ýYñ½YNåƒ~ü4@Iªh*ú{‚ ®ÞÛBøMò°p¥PFÎ`ÿÆ‹òlú&h¥þ±‰•¦jšûýÒÑY�ÓÌŒ«Ïžœþ§†ùødœlŽªüG�ëí͸