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Ö/˲¬RCÉá’Õ aff:gÅY3Ü—QNõ ¢¬†i‰+fæ™PÑÀ?š]GÄ�ÍìÖÉ…•¿þÒlÜ¢�©wÇH~¹0Ä]Q©ǘިv¡þÉ1²Ÿ&U¾9F÷Û˜yÿáOÕ¶`ïå+ÜÄ>át<66�‘>0~«†5>`uÜÏÌXå7´FœÞzŒö$7íxÍ ŠÞ¼fBÓþKû/í»V¼¦­*¿¡5æ±PïÐêµÒ/aõJ™��KXH .cÏpú1˜­YèÆN)C 0¡žÜÐ!FÊ•�›2Pz Ÿ½‘l�3æÉ�•bs»3¦tf„®ùÏ0ù°_œdjÔÕ2U,¿rí›/ßüòáÖnk~"�ía@¬�i™*’_˜_ÚØÞù÷o-/Ì/Œ2= ˆ]`šžˆå"™ Rc@ì噫¡‚¡PÀÈô Ä)]f¢(u�`ˆ‹”s�#gˆÛ€&ùÿVP8 F 0/�*‚‚>1‰C¢!¡>­ø ³€hÒ¸ô +ÐpÖïÔŸxvn´O@•ŸÛŸFìÂ^§Ÿ‹>#¾]ú¿äî_°íÞÍù›Ì_ã\~»ùMù¡ïŸø}1þ0{ŽÿþµùQù�ÆY¿Êú�zõò�ï™ÞR_ÎúõûǸòæ_Û¿-¿´|EüÇÀ°?ªþ@}þQþ;û·í¿öo¥áÖ|ü€ökùgöõÿà ¾Á�ÿ;ÿ?ý»üþ_ï¿ÿþ¡=…~Èû~°“Á“Ú³4´Z¸µqjílVƒL®åSÜWZÕ¢×ú>Î!ÇpÒ,0µC§¨�`¸rVÿ)•Ï&y wN¦�†:Øpêýž©î� «R‚|É`'¥ÄË”í箢XDŠx'±z¦íë+šùc�âAiž%¨“ '¼<B‰nw÷}é„”‚ç™åè�)`gxApOiøÃ!X„’.{ñ˜<œúø&†R·A«=©V«ßö¤2óóÐÙÔ¾§ƒ\È_”Ð6œìÚÝq¡§ ÒíŽ0aƒo0�;ÄPÓI^@©ØÕ½•1‰Ä”º£{Ô•|Uœ³ScþÙÍdŸ½d»Š¶ šƒ®Wçó)£D "&ÿcëd³Û‹¿3ƒÝ-Á ¨ @ý'« ûž>Ù¼@ w§cÇ“™KesÉ…„o|µÂlÍ.ËÙl,Ÿvh$tY/æNQ�S£Ù™zO›¡C�´«„ °y²Óì”Äý܈Qwò•ÌGÃ\~pÕÓ{9Dð§ø¸ˆåØW'Ûg÷žÍzíu«Ìiï~‚¤¸HjíºVÄ–{íÌêÈm¸0®‹è—­7n^x¾Ë¦£î@Ih•E¨";$õ-w¤L‹þ SÚzË‹×Mûv>Œ ¯²¦ù£�RUÖ~ÚÕçFiÐo2¦Æ9‹Sï¿iM- ;G1&�0eÈ£‘?ixéðžaoé6_>*'ÿ?»»ø×ÜÝ›®[rDºš¸¨² ªE!Mq<cŒ0\ìè£çÌÃ;ÂÎOŽ£¯þR‡#‰Ìæ·š‡›×\aÍZ:<ÃtàaŒ§ª IIì°Éº©%,—v¶ègսЩt¥úôgÐ�úauÈ@Ø  J25(+Šõaÿ—柱�Xÿí0¢/oñ³ò"ÄÏ‘±Åd ΠÛGaû¶ú•ð®žlató6G¸Ì²eâÞ×—¶Nìý®jèˆ1 ÏÑW~ ý^Ê«C/ú~&ms*XÚ¥Ž¸íé�£‡‚¡ƒË&*Cú$þuðÖôñÉþ§ E½**O­«ÆHI¯Ãøÿ§ú „Á÷ýÓJÚbtbª>@}«¯0>Í£Þ6ù¼e2ªÐîL?41b‹d—×ç3ÔÁpú$Ý}ÐàÖ<ÉBc´9ý3‹nüé•SÐa+FK»Æ•@?Ðë'¾ÿª{ÄÄbУÆC_ï'åD­÷qÅÒŸübùæ G-Éi§ËQàÄkõ¾­TI]¸ç(ß|ê]P¦ãøb8àüXàP•`?VÂ&ëøüåðÌXZ”>™A5�ßk¹qæß\ògP…TP´¼&ɺ€æ—í?vmYÑ6†þz|·Y[Ѭ’Úù¤å¸èƒomfv¤X‑súd/oæ`j'i‡åÜsñ"å§Ì济É*E¾ÿ­3§Ð•¢Ùw£¼kZ‰™¯þ^‰*WXFmµä†ÎŽV¡oòH6.[IEp»*ÍÌËéÑ*U¼ Ïšˆy£aˆ–v$¥iÓ)wçÇ›f‚´LÖu¢�­êį2–Ž�&ç|Ž/ùex–ÝKáÜð×+ëJWtn=vïú`< F¹¨ÈþÔúg»û¡d¼^ùF¶¼nÝÆ—Êð>;™àú/bÁY¥”—n޶Ðù�Ò†p`­Ú$.¸Úª/~ ãîﯱc¿”þB M9Aÿâ^“3( hv´ Çëò™ýä�ÚÛŠÝÓ¸#užç+íîjd%G�&¢çšÈw_6´|öUÒ 7§îŒ¸žŠ˜þQÚÌ$3/Â{Ôržìtu­  Ñ?ûy‚ݱÇBÂðcœYŠN²È¤ µÓÞP‰tö>š‘ÓuMÁôžÃc?0g�àf«ªäT+�¼c(tSùï>ëýU—qþ7–E@ÒW®Ùí™bϘ�“Mko[üâØL % àÓ `û ÒÖä‹Ä½EŒïèÑ#õ3Î�¿Ï8 1% yíXåvu.+’Š#’ cÿ0R´ÏÀh?š5tìÿ=t4˜­hgý_‘üÊÄ5R—±’5dò!@Š–‘¸xÑÖ•¡uЬŠOO�à?žÞꎕJ¤k|”¥EgѵËÿ¿™ÒX)1 oïm…YÕèìº;Uë‚Ïz<�+3†( ø„#]#uw¼+û^ß’ýy e¢sßð*W*ñ>19ôŽÃ¾‡��¸�—|È5äÇ×­ç ú‚‹ãÏé·x3dL)ÁƒÀ´{|£¦ä¬¼öÚNéÕ"œ. ä韚ÅëQ+çUœå0=/m§Pâ# !J£Ö¯à¬2ÌÖÿØ/Óóêi¹�„Pn+Xk"ÐkL í=–c•$.d½Ð 5q�*u13ƒîŸ&¹U —ÌþÆ2­±Œ@• FŠ9M\ù³©Â³~po¬”õ?CtB”™ÔÛ0Øu3Û ¤ÛÚÁË?û‚z�o:l–ýÄÏ?ˆó¿mR1‘• 6`›èêœH¾ø>Ý>÷V ÓO׎æEâîÓùŸ· vleµ)º éuJÀåßæòîZ=ö¢+!ï6