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 ��ALPHpo@&mãßsÛ}Ó¹.�km›")okUÍ ½ÈZ„3!î².™[V¸C­"QÍ*Ná¹FÁý�õ6@Dÿ'€ÿ»\z—[ŠH^%S?«JÞFåž5¥s×£(Ñ^-zý›<÷á¥O_šëêêêêigNµ¯.Ò*�÷OÑX—|P˜p�ØË9à=äv)(¦!1�ôù|,C´tƒ"W²q“`9-Á¦¡hv 5¼0-0º[b$³7ÿ€²ôE’ýä0½ôùµ%·§=rDšDi‰N㯗H$0„ñ ƒ%G£Uœ…Ô †÷8° �H©Ç 1äI̪4Šw¿x%‡ÃñôÝ×A‰…"À–É£R±¨dxÏ{Zš€’XÄì‘'—Rs!.g+œ¥eI"Ø$è(‰HVbSL¹r®‚d…À‘HPøôaÓ3ôäkH�`'ï·€ÀbVBãЪ* ‰ØÃÀ�ð‹Y‰D¡¡*ã!�Ǥ£ôœC{õœNÏÀ ®*ÅØ÷el_ÈR€J/‘ÀQ¦«“ÀOß3sûRh)ÖO�xaOGSÆñž§>ÅŽÒ¾ñaþ6fÓaÈ' E>.ΆbSg»::héØçÇb¦�]Cû¦º/�g¡ó,©·�ê|-ÍdõÜxzdaœ¶ÌôKaW�$¿-3Ìoº]ÌGRd‡#Ü�jI–#)e†´äÙ²WÕÂ-žy�"CcX¼+Êmº{+ÄÅÆ’ég1 _½yý¦ °;˜-æ T½ á—Èz9¬d&ûSwÇè[¼+ø‡?ø+ù?MVP8 6°$�*‚‚>1ŠD"!¡œü` ³·p¹D¼™0À=€}Àiýþ�ý„þP –°ÇìÿüìÞÉ9€�ÿ{ðgÀ¿xý„ÛôøÿÖ¿½~\ÿDöû§â¯à³>�?}Å¿ŠÿKü’þ¡ûkíh ÒŸ˜�ü’ü™é'¼Çó/ô¼Œ�íìü{ú_û¯ËyOó?ÇùÖùëý·öï€ã_ÑÎÿnýáÿóëÇö‹ØãöXL||Ú¹Ö‰oyö�›W6+ÎæLë½rx0�¬ x,d)‘ØV!—œ¸!Ûg÷†è”3÷©®’ÚrfIíü<=rS@ÀQ±÷y8*þX#E Hàë�÷ÇW3Ù8É1v¬+gŽùDøhùµs­Þóì þÿÉ0)¬-ãƒ+Lq¤zkÛo`Ô†\ü1Ž££†¥Wb®²å×¹ã?Ÿj ƒ¹dÕÿô‚üÙþ@í=z—åD�/þ¼ëV¿Iå_ &¡×P'Š ¿¨`¹ð#–´º©ym ¨ónÉsð%Sûÿ¹ j÷TûEX&Úâ-Þ¯Ú�åŸHN/TÐh§ÆswÚþg@6Ìq!NwþzG�RKQêC0ŃЖ õ�ˆ}×eð¹dçPpmˆìè ¶Ðyõî‡^¿÷)êAh4Ú~Ü#SZå„‘Ô (UfÀRrË Õ8�ïÿæúRx�¹;ÿ¤ÿáŒ#Ï“à1lS‘HDûD"t�?Ý0MîÕ@‹ò°>ØŒ=…jè´WŠT^�ã�𮃠I–Ãÿ8Ž[ÐÀß#t¿ŒÊ2Ï-k¢ÚÄ™+ý>ÚU]ÿB?m¢Fõÿ¶ÒS·_ã¾:�Œõ$£Š2÷¼gN Χ@.®@w/ðéÓ´Û‚µ½F.§€„+ßñÃêùò7üÐÆ5ÞqÚLAÙŠ Õõ˜#Ðg³[�ñé0­À¼pOWÂaø:7íùØIbùÍႆG´_˜ˆ¤:ñŸ�LÃv,äøg+äJ�p{X8Y‰ö�càµT…†r`I#]è"“? Ãåo]Lá(Í›äæ -¾"ö8$² ðÜ ŸñîyÃÔMN«êÃÚ¡6?Zqˆá †Â½2½øw÷üf&2ÿÿûéªÀÓC\�W¿Î±f_Š®/Y‹£\˜ôQûѶ#mÊß‘úÿs,þê¨P¥ÖY,Ÿwëä“î©uUáÂŽØ=0É7ô*äëéª÷ÐιŒ™öPœ"à~ìåç¾ã2R\w�eÿ>šþŽº8*g=šÃX&^¢€±TaåeÿÂØ8²Á¸KÞèjÕy´•ju¼ãü ŽØýHoœõ"ÚLж Ð_Üáè·îE¢äÁ‚Ï…“»Ò#®•j q5­ ›Ÿ/’1w0§Ù™Nñõây(w.kÈ€/ûÜí÷“NÂUòˆY5n.zÚ«ÇÞÔÿÚ €ÏO•|$°žßí�‘!±óó •%$ûs@�âaŸR¨Gs]þ–Í>{¯~“â ´ê„»ÝP±*÷9Ê“ï/c6ß÷™æi¥(!!çÿ?S:#þ¬×$¶ÁY2<%ŸÊ9k‰øþs©|bÙ1ÿ3%¹óK d¹ÕêE#ä±eSÎþðe·NKšý¯“pÛpSÔ1<ž03#©•ˆ‡¤oUžþauÚfåÞ‚n—I³S j˜ð\4r:¿’S�„#¤±€&Z«Ì‘Îß©Š`ˆ¸Ë-,ó³ÛºþF¶,…ß‘$厇éª�Ê…,ñ �èL&cÖ­�G掷 ~ �’×ö¬Øe3´*ö“”ßïvXßbtvްŽ‹Ò™Ñ*~^äç0Zñ1Ú2Ã1×àÞF­žRM¿üŽÁw¯Ôx—qWô69·.E¹Z™Rëc·:!ÿ'q±óŠ¡é?þ ¶W@fö«e?{M™@~º@l/öÌ<»‹å‰žÿÃâïT ¹ rºê΄[©Ãj?‡ÅÖŒœTã7Ç—éÚÏ„)„"‚®ŒŒ" Z×n¿ëÿ7Ø÷ÁÞú‡ß½o¼YµÆ£ä >ÙJÀáô‡ 1j»±ü\ØÜJ“ÙŸÿq#ñ2ØŽ±uÑô