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�*‚‚>1‰C¢! M:Ú‚ZMÀÿ‚"”cÿùâðÿñ7¸zÜ Ïƒèy®AK濎¾}þòßÍ¿y7X= þ)ôËì?Òe¿u¿ÖsÛÀ ñÿç¿Ð?¨ÿàÿcíÏú7oå„ÿ!êêçË?¸~TeôOþ—Ъ¿Ú'~€?N?»~AÿUõ€ñSï¿ò_Ð>?Žÿ9þùýÓöïüŸÆoø_Þÿs?à{nùÛüçøÏÞOòß`ÿÇ¿Ÿ•þÝþCþÇùßÿÿPÅý?dJXè9ŠÁˆ¿®S Øl¤fàjH Øœ¯ÆW¨‰¨Òé�ƒ¥‡l¸æŸÝ"’,Å¥ ºeFªóiº[•&p&zгêEºL4’}mQ^�hn[Aâq ¨„�Ç«Îf !$«Q›þ”}¼b“ô̸§û|Z@ïQúÓî¼³¯©Þ(ÁЬ@{ÔŠ7J@­êåf.àê(¼blgoüÏ þü3;[µ¸¡©¹,‰Wk«¡#sz¢#hý…Û–%ÐöŽ}x þÿóÑ®ë—I^GжGë˜÷›Ü@V�þªT›!šB<Ã2]òÄC¢-[›=�]±HâsþA¡H�Ä­ R 0OUßvÆþ—åkO؜߭ ³óš›>7µpOÀBÔçp‘�°$hþ>¸‚õ½›Ê®®Í8L—V Ú²…ÊÉÁ—qØ‚Òx‹îQ¡ÖqwŒG£²W‹Z¼‘ÿþ#º­m¾}a�ƺ ÊÔÃZ�ºœ‡A_ÓdHìÚ¾¦·›:ËÙ‚¨$¦) H=sD†;ƒ$µ!•AÖ',àp�K&ÚyÑ‚êâ}— –OÌbâf¦‡X¾é|@ÔV’Ò~ûWÂ$4SB¨Ç BXµfÏê3té9˜ŽqôÚ¯Zî!br̺#x§ía—Z3PxdT6!òàûé‹ÛœJ9«ª‹7î…ƒwFÍD-6}ø¿�!stž‚G” °7:è.É ‡G¨³�. ) v¦“÷ø¹øŠ3Ì„J¹Þˆ�yp[KÏÝδȜcMù@±|@eX÷çεIö‘Çç-˜V]·vTR.ÿ®jÿÛ¥ �'Î×¹>•�8X7“Ñ!°6¥‘cå« ±¼z›Ý­„”Ÿðøôâ¾ÕÍl‚JDRÙv?Xþ>J¨¦;h”$Âý’>?„¶ e‰äw­IÝMÙ?Šó·Ì/e›(H|Äö„TƒÕ¦°ƒ }ÁÇÐöºYOvìqYžNC²Úy€æ#xbWÊ^tex$l5<Ùÿåè iPˆÐ&žü–ý!è)¢î)À'�¦ÚÉÓd¢~ÿãå.o×Ö¨y»®f¬ª*„,uFljõÔ“"¥Ûw¶€ñª*Ïÿ–-Á·Õìc(±Û;|MV~•X‰ÏÎ�B^rö¼C]Ñemdd/ñÔþºê dd.æ s뮕ÜÖÓn+^íw˜œm¥¿UÔʨÿËDo³q|o‡%ºåL¹£0Z³ÅÿMšz(ä\pˆå«l2ŠIH þ"<æ|jnV_–iððÍÈwe‡×Û„-ŠùE©’Ž8î¿P ùæSE¶^Õá®bêH~R­üX’´ýï-j@oìgL1'ˆ›O†éšýú+»h�¨ÂW¯‹¶ïbSÀiUœDýòl’Õ¡JU.RfPƒ§'²¹¯Á�D]$Tf+בּ‚)rÿ¥†G3ðn„Jv€ÕÕú»h¬ÍãÏ£ízâ87˜õce"Z³e½^4¯>±Hç^5�H× J)sNl¬0o†3ÈŸ�„nñhÎNwü>vånesî;-œ¢Ñf’Gä×W|Ž8%ù-stó‚,}ª Šq Ù]GUŽò¸ý®[—6óÙ-ÁPëTÛÀÜÏ Rú*hé|òØu¯;\ÆãâW?(T4ÁÞZâ°ßtËÅh¾á¤)©8Ôgö2«ë¼Qk¾ap™7þ{¥¦cºí:ò®À~à&DRõôš-èÇ懅6Ïn§ðÒf/“™�Å]^º¨­ûí¼¾9êøæ¤Ò;÷³C`‚k&‡6þ™qô¤.‰�~íI›JgGVY«¹Vÿ¢e)SUIiÎ�æèÂÒ 1ðK,{F¯ûGÒÓ‹bPÿdú!*À}*ì Êèi° ôÕWض崤5ÆYgù!†ÞÏKЬÒ2I.‡=Ží„Ñh¾p…êÇÇ;SB>p¿>øDRºìªðHÝn›"ÐîßlB2u •ú“jjØv¤e \Õ�5.€¶§¡a¦+­Á™ØGŸ�öYØ �NÑÁ ~M¶§`;=äs1m„jª¨Ê«ò:–iDÄ­L#�Öÿz­´·Üï „G-;Ì;Ô]PÐb€Œ ß®¡ÿ)× žÓ´5žH1YvÓëK O7˜iȰL0™.ÿWæá_ªQºñÐ^=!]u-ód­Z+/ð›¬~WF‚K.¦¥B\Íâ|÷‹ØÃ× sS§xG˜{õFÜíJõ›Ôª=À×ʶ¹õ®abÏx©á©ÓPCöÎi}pe ‘ ç_f–›"K»f{S(“:,*¡=CIc"6ññVKoiy2plÍ’¦÷?(R°žØž(CY³úåvPðÕÙD9•ZÛ'3Íû‡è\ì°Uk…ÖàvmJåÇÏ•) ùÆogfœfqftK•……ŠQBÀÛ!M¾×÷W@[‡ËßnX%)÷J^A·ui�ÚS°M%�fÉa e‚0=&ˆ8 † £â<3×™7ŽõÕs�¼´¦Z–3{º ¥†vø’¹O* åð�}j¦¸Qùç.oöÀà¡ ÍIòjÅà6‹µê^KGÓ $~²Ðo %mºã6Z•4×Gùy<‰ŽN¾ÍŒ—¸u!|ÜÆ¹…/)–!fÛ z6Á¬Æ$Ð}[E êñ!ÒþŽ‚ô³¬x#ÖéñÇÚ�˜ºRwz=&g+2i‚ÙurI¡~LÓù‚ Q<UþÞfÊUT5ròí_ûxa{šÄ¤Løé;h5 "Ãæ €+•m ÎWÿ¬à å É™] 64¢’CLÉYA)^SrB²¤¶=.¾ú/(R£UÊùwãXÎRÿ²>Òx0às¥të±}4¹­…8ë(Z- 'œóýºÊ;òºU�›T®N5@ªùßt‚ ¥>2П±ò¾¤Q"¡…ƒ¨’˜„ýB�\-é=óaÝ”¶yýy8ˆ.!mýi9G¢fv”�íb³FšÛí) •C䱤6Á3ØØ€÷¨@¸õ‹%ÍÐLéÚ6J`¥n�|è›JïÛz6´¢%«ý�‹›èZ@