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 D p.�*‚‚>1‰C¢!‰N&¼‚YÐþ-!Kçÿ’Ú ÜÐOxÐô¯ÒãØ�ö§Øõ—ÿýéïØ¿ <÷ñqàb<ÌúM?œô/øÏض~?~h{5øgðOøßÅ_€/X]ü–à ±Ýý@½ùçøÿÊß5¿×} öfúþQý7ûåg¢Š/”f÷þKý ü7ÜÿÒ/ñï?ÁþJ{_üÓûgúßÍŸ äÎÿÓÿzÿÿ—ûŸÿ?¨^ž†ÿ®ý‰š™éq»>NËÞt“ßwmU¨¯ÂZ­_%}�ž(,ƒ,Žy…f� V_AÏ$Ô^ð{?ï¿�xºLm}Åk½�úLžì|Û]Ž›°»I¥ÉÊúT TAg½NÎï�½´4·…œìÔ¨×éŬèeƒ‹¢-�Çê…«ì/~�ÚºCŠØ0­å·Q2¥ÍÀ8µ3"Ù”viÄw"¾o,šßû‹OAúÊŽSPÒQ™@Âw—àþÿóϱt`hÜkL}ïsó¾jEºaR‚3ú¬ß¹/ËT-`ø£•ßÒ€­yG�ÎØ=ãéUÔð”'è�2¤"J d0›¥+L4 IÛ¿aGÕØÒ£…Ä),o££‰û—‚©¯µ ¾®Ø™€‹5}/΢d”ŽWy¶ „E–ñ­�² óÕo÷ø±‘ñ>ýºáÎe`²À͇r®üGÈé(²±æøÃ—Ô8àèªN3Ë Ð/{;¯YªÍ 鈃ÙlC¾4’ÒEò?ªT¥ItÃI#�ª²CÂð3Ù¯3+ ÓÜJœ¬î"t![ìqtøþ™ "²�"„0!YK+—DI„>Õ(Âz²:Œû¨Ø7Z“H#‡2‡k†qBÛ³]Y\\–ÅSd£ùu¤@î@ÝYü*¸>rÏ4(ûVzéè;¸9€wÊJ7Ÿä¿óÔû‡²Ì\éÊ‘’œ—[fü#Ë£Ú×{üÓy5 £_é�͸©kVpÛǦäîþOF¯ç,²Pé®*–Ò&>Äm@.ð?–ùëªÿ: ÔN "_&<¶»QL„>o�õ²·)bðÖwƒ—NÔj� änP­Pí™`¦-ï<¥­Ð¾£ßâ:â}¸·¾µ6ûˆ%d÷7ç‹{mT@þç£Ç‘Àdôjè‹ñ£øÖz°ûןûPMó”©Z™~´V=üÝ9p ‰«p§YB§ö¡" Œ9™�»G©öýˆ©¬I3ÿ7l:ƒ1¨Y#Ÿs5ߤ<¿.€1šm–ÍÃ4�[‡ª{;`?Ÿ\ »�ú•¹¼M±a³­ˆ53–®Ì±b¾6¤•lâ]¾6Îbø*Iœq­ÆsÒvÉyµ¸P!‡“ú_Lþ}t1ß=(6uÒÖ¹‘ÙÃôEQ‰�—ëx é;n?e?E2fÁ¤nròö×»)o×½bùÜõTº"N 1åV¡k¬k´ëÍ=ê6Ư#w�ò¥ÊZT‡º n5ÕÙ¡{±}m@Äã¨!û“=íøL8Þ~vr�cý-ùÛYÌÏåÉã¼óéñ¹ßÌ],Þ zÅ_¦)Pí#»ùò-}†Ó½øîÍ¥°îÎЇV ´øRöç0<]û¸‹PÖ“ñ‡·Ê&5ý²Âpád®LT½hmTŠÝwJî9Û'„&P¼é‰s.p?_UNyW¾§I™C¯7áP !�bàt‘æúÁ. X²¤}uÃÎÝðŒxkæ¯2Z(i£�†„XWÊ�—ñ¶ÉŸ{ Ym8-z(CvfXP&á]õ“EósÁ¢ä;u¢�P`¤ÈÑù‰92X Ú7޳åAùü.a /•.CÈÉLyöÖ‚ìð5¶Ú®o8DB$SZøÛ_Ûçìû7½Lèõ×*þ? t’®w¿6ÖQŠßL¸¦÷²r¥pñ‡±¯HŸý`¾•�Ù¸ò›E¥±Õ3|X“ÖÇ;îw|9­æ÷A†¬-V_-û(i\8“ÆßÇL«n{Ã|z?û!”Ç8õ?ó: Q¯Ë#Âe½«ïÓ@—| wÅKŽÙ[^ðæL hÔöçwùT^'åÃÛ›<h¶IçêÌù 5mt%ù*±\8—ƒÑ±�ÊFm¶Ï3t3ü0ŸjOƒ+Ó‡Ux:ã›!©Î1Ó³êö’¼-è‹r›ð1ºµ@¿±(É$$ä «)x:éyQw‰ÉŽdù”>Ph&uwÒØZÁceÈX—££û-òr™¾8-ž7jj.[ ¿HI>=ì@ ôïþU¶¸-²çŠ4¯ôñÝ@K¤o� iÞ®´ßY‰6Âwì»ç5éyáüoÝ‘»Š.ÿº+��<îÐÓXc+²Ö6Ž—B£•¿ŽEÂC!�‡yÒÜJQ@„ÅÚ©Íùfš Ÿºöñ ß8—HGµ©ɧÕ=?•Ÿ¬­ê�:K»Ã¥Bskt©l•ªÃÄ"ѯN´F¯Ödúß;ôÑ™›äœØI¹ Fn1ï.zÀ:À¦u¦ò;.5±#¿ç.îR�µ7;ÿÆ“[u·œºh°é –5ÂÇå‘OlÙnÄ' Y*-gËlrs¡¥ÏÿU¥é=ˆzœ™«Æ’þyZŸÌþ ¯ß‚OÛݬè¦-ùèxe™º/L!uûeèM<„¯Í¹‚± G7OÃ/üG`­zNÒ ³ÿÖ+4 Ñ*ºX³çÎâ<Ïd¾öñ€º¯$¤Ç øÏ†>·îošÚû=`2Œ$V¦?Ù{�DøDmJMa<ó&~‰Ñ �}¥8è&˜ºäép“Ƹ† 7Q“•ݼ>>v$üµ¤­g!k" ä|¼ø3†?PQYª«†ùšMŠ¢ºH 3�'5U¾Dz0¯Ï}0±LH‹´s Uæ6ˆ¤&Á“€$½pª ÇÒ ÖߦðÀì.$t*¾ÍŒ½Â'w–¬ðÃÜŠ&¼Lä¡Ö¯þèt⥯[7 }{›MC š”¹YqåÀãÝ´‚Ù…Û帩.�û‹ëã”ãÅi=Ñe©]ÜgC±€ý2Z[NRw]‰Å6í»F°qLîS̳ V¬fø“NÐ ñUº;ÙªJ`s,Ѭ柸