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']
RIFF2 WEBPVP8X ��ALPH’�«þŸ"IÅŸ¢(ŠZkŠ‘•¦£)Ö}›‰ÖÉע}�ÜŸà¸è‹�‹ýÀ/rwwkÖª{õ\61ä_ÓœXZ;öW¦ 9º_0xá[°‰bðëúÝ}vÕ«íûÐýjÙ/ã°—ü§Mt�í!ödáÍÑNm¢|•G€ú?8CáÄ&ÒçØ ô Vï!4õ « Ï,Àü?XmXxo€ÖÄkDP‹@lÌFQ“EÿýWZ/^Ca�¿Ð*”†è/XýñÜÛX½¨´�pf±:­B¸J}ÀéWwLÚ˜S9ƒÓ™„°‹ÐÒJ} £^u9³�Pºþ&>Oò©„¤ÄÆÊ+3æ6wüœëp°*”ë¥^aòá¤çi%) *c:ç5O]yõé ‚ŸÞ\ÝðsžŽIa˜Œ¹cŒiõóǾßYkŒÉéX)˜t*uÎÔÖÖÖûµµµÆKU+É€DÊKU¥«S©ÌñŸJ¹•±rA�ì€ Y®b(*§T0 d�RÆŠœ3 d¿OòßVP8 z -�*‚‚>1ŠD"!¡”p  ;å¬_xî>N%ðï¨ .2ÿ ÷ Úí'ÜôËügPÔPÆ?·ÒÿeØõ›Øô£ÐçØô¿ØùoøUóŸ²?²ÿ¶Ÿß®_øºÀ2¼ïðåähó�ýMü<½aþ;òw‚¾b½@½†ù—ü.èE~±†û9øÿKåào@æ_Ó?Ù}Òü`ÿ»þ3Ï/ÎßøÿË|,þ•ÿÕãØÇí/±‡ëÿQ(ƒ¯ñÙ•Õð’o$½ãv�Sñ®dåÒ¹mó¿süûÀ˜þ7DK††”„¿¸(±Ooí‡Ø�Æ ½–"« Ûp2àD®˜gi�ÿ ÖAò&O–ÕÒðÑ]Iˆ¯÷øî¯ãn_§fQH:`—Þ ¦¹ÔÇåÐÆ#Ô,ŠE…,6'^‚÷ûu7ÙTŽ éV\ÐE÷æHóo;O4¼2ª:�Œvb‡dvIèf_°þÿÜ“-›ßkúfþ¼ ®å*LE¿¿ý"_Ú÷†xØ •:%›Ü2ý}½g;ÿŸý_ÅÒwŸû¸Äà ú…Ï�Øÿ „Í^]d>u õ¹È\f~‹ÔB¶Æõɼh4. gQ¬»›ßjÉ ñ·LX_Äqrøg¥x ï'‰e{�CÏ-¦K’¿Þe—íqácöwÿ!·ß�½Ü‹*«M"V@ZåHýZ-N½£YàÊM½¶ÄœlÂB®�¥ ψ¿|»š!w­uq�l¿Düñ+oLÀ®ÌyžøÇl¤³ºæÿe÷ä.ELðóK0‰„ep°¢i>”—õ¨K9Tƒò×ÁáŠÇÕ!,æJÆþ0±ŠKŽ~`õµpÿL"Où ªŽ¢`[Fí[P´C:›”¨4’…KÀÀþFâÓzƼ&›æPìé›0AµªïþÇ™?óžBÔÑøûw’ÿ*1g¸cÖÍ…Ýu~¹<‡rZëeP}ö¡�…†[T7GÔÍ0î&Ÿ�ÈdÈ[üUË5d~Öæ N¶üQè;]Ìí¬yŸùˆ¿Û+†Ç0XÒÿ¬…9«Ÿ‘½-/¡ù!Úôû 7ýJ…Ö ©QÝñ ǹø8ž/²+z•×2a�.ù˜_q¿�þ@ÀÜNNöü¹¼ZÏWÙ—Èîºö±ôîèÛTæÃø3H½ þ±oÑêÿ’‰z³§=¯Ç•Ebe–°U[ž�R�ámýåi(™î¤Ñã‡ö´G¥±UŽ'™¹ÖuÞŸZª¢P‹> Ô‘ïÊØÝîû›xtSÏ æÂhßåÈâ:\‰}·m>RE,—nËôéìHßø¶•7dȶøYâg´O3óÓ^1vCã­’ˆ¬mœ˜ŒD¿�j+AÜ>u&<»€^ÐcåP­�jÙî&®)I�Õ[¯S60Drb¨—ÏðŽÛèO¨¢� d‹‹m—?Õ„ÙrVÔr[¦‰ýg¶‹?18‚ Lr‚šÍz_Ö!'«iè7@Sga4³þ£¨¯�áã¹³ìhJž×ßþ™Ÿ ŠÉ°t�vÉúaUvìþ€>%ߘù ðz¦ 0•^¶…ë³^o°�)è-Í{ú2FÑûtÿ%ô›Jɱ&s­èsІ*—ýð_èÉ…vNPt"SAñ©í�¤KLŒyê°ÁZ,Ší®N5œvÈm8†9€…ÏñÐ&ÕÑ@b3ÃD,ØÏ¾¦Oëc”’= ”¡{£/ Ds Ç€¥cèÉ꼺Éö½SÒ%vcï!×èßÿêâÛù¿ªÂÜÄ&B†#¥ý3?×Z‘aÞ§ÏÕÂZÁ{Ìzl©ùùNIwæÎzö¾`èáÏ}ëûÅÍ&•¾ %Ȉ´nð z�¢Î`ôg´”‚èÀÆGÔƒÁW Í7Ý CüâØÆû‹1hð æ¹ŽX•_\±;Uć�§ \“A�…•Þ¶/˜‡µQĈçZ»ôMjWo”i‡¯Äÿó³î¥“ëô³T7‡5P¶È�ç"ˆïùû—¼7�žß94âV”·ÁSH¸+J/jz´~Öa¹Áêß¼9·K�ÔWù�µBäZËjÈM�Ϥ³±ìwç(7ê³AŒÍ½¤^KÝ^žû¨VqóÚæë"@¯RfÏÃKIzœò,áy!ˆ-¹þÀm ¥\gúo툛9Güþae©kè.#@ºpuP‰Þ"B¨Ù.¡éŸesöP„ÂXõ²ÚàºØ—m»rMž M—àú†²9)ñÀ¶b"пä·i(©PtiAx0OˆR3¤3b6³Ì´ #Ì€}¯‰8éD=Ô•hïÇ.ãÏð;ÖP¯•[d|�ܪ—-k‰Þz‚ŒR~wþly>¿Nv‚{XJ¬õeÉ%¯öãð„r8e\‹/A&J®ð 7€eá¥=Í~3ÏÙ¤s5Øf;ä|˜5ÝÎrüŰý«™§ jGýÀ0mòJîónÓÀ]ðD ùMЖÕüëf鉸ŠÊS"ù}ú£7üwï �mÐô†�þžþ¦?K‘>՜Ûéê�˜èL:šìÕíHž IÎ=�æk]ç›ÀªH�HÉÄw©sWîøŒuœâ+¯2_ï�èGéh·–yCùâh“':½+ÁšŸÀ²[Á�Å"ƒW®ñ㵆6íµËÄÀ�*NÏÈë§d—ô,KÑ”|ô´ûDÕÒV0afD¿”Ñ»RŸ´2HZ éDÚ´ôøï�£´Q…¶šjÂCâ³çŒO¦o°r:,Мë}tÊÔ«�‘]Š@C�â蔺¤\q\(-ʸZôçŬ7­Wu‚»rÑ Cñä_4Õ¾çßbÖ¼ÓÔåH³•äß«ØãoÇÍŸ/ÇkÎ!;³">è'�oÖ¯C|©–µy` Y—¬tìc¯¦ÁSZ?à3ïæ†«ZC-Åýî,‹3òÔžß"ûýWÿ_ã耫Ó{PÇ·õ<ÛŠD@>ºoƒ<ÜŽ: ,¬ú«Ac$}§Ö`QîÒOn ·ˆéÓs¶§Ut1?¦þgöɬóõ¸_ø°‡¶V3äÕxjÚ¿ ý,óò.ï~n×zÖQ‘5û=2>5ÏmŽù}FòÜŽNÊ.‹öYb³És®wË:8âE€