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ŠD"!¡8¼Ì ´€ióòuùonÓ úà;Áë飿 úéö_ì_°Ÿ”@ñÜçß’ŸŒþqù3ý§þ÷ý>=°ø§ñÿï_Ùiÿ¹þèzù~›è‡Öîþà×zü®æSð¿`/æßÐÏÿ†ü›úLýÇýW÷ÝðþÐ*þÉþ¿ûÏ÷Øÿ°OãÍÇuýÅÿ ÿÿêó×oíDZ7ë�þ¡´®ÓéþPu"ŒŽ3î)øÿ+j¿qE»"šª¾>ÛsÏJ<›‰e±ª@¦ÞƒŠÐx5�½+Ô;ý¤œÜ#=šnöÌ÷ùF%ØêuôÖÙUúä,'—]“•ÍNÖ¼^Ù³¥Å‡m»²iZ^ÕDݦöTñ�pOᆠ߯Rqªå(ýKN–”¹}£ÏûÝtTÆ.3l‘ORY†ÄP¿¤ü÷ûâÑêU9m!Ö&ƒm&˰–z¯8{¡åÝò °L.©º^Ý›B™¬1¨|}0;�O‹N+ŠþþM™‰CU9¢jä €¥ž!œæC�Ñ.»á©iN›hô~ð¸`kgv˺nîù×fǶóã¡­MÝX\Á'Æ‚Ùæ3fªˆ/V1hvŸs „®ÉĪ+caàËÃüpÏT;G�¤åŸBrPO´`lÆÒ¡E ᬃ٠ ÷ Ÿó"ˆ› Æ¬>u�ªˆ¯»ŠðÔ)EKXÆcò“-E†HËU(üÅÂçÚ[—Lª•U¬š<4”q�Mr®)GñAùo�ãäP±ÆúR ÞŽºŠJGåéašGy �»È…8W£cŠ!¯TÔeMŸõœHdM$¬AêÀMSUÛ48F¤ÏgJ}Ì—s¥3Ä‚3óÎptI$ìh\!ÜA@70�¯ò;÷އ‹Vopb€Â„0®¤f34ï¶çyU¦äh¾6Y?бqt>ßÈ£<4�›§zõ¶c7W¿"D_Œ/wWò©ÎW⯫¢] ?ºWØÕØ?V#T^-¥„]¨Ã(*ºK§IþMÈ‹óÕ¡6å ª¢~wÇ& >—,-í×¢Ý~.˜×šר©yJ¤˜J1¨w’®®Ñ²eãF ¬ëº=€y-Rò:3•®u‹£š7QÉGTõXW~¬�h× Öð.¨_W‰yÄìÀùÕL;/‹^¸Šl§·&ÿ׳«W”UZä•_{ú¼„Ó˜`÷32á!ÜÐò?ž¼` ¯£H§@Ö`äñ™�K1MãÂW¿ùPÑpꚯ‰yx'»Ü%'Knà¿ú ¡%¼Ð,d±Ž×ðÉ×úå ˆç€ËeÓ¤`°µA†u %J)ŠÇ4Ò4X0†@Ëwóð­îløÿ˜x·¢²Yo$Ò]Ö8àŸÿ PÌøtvÞ7ó¼Ûμã}gç¸NQm�¸–ØŠÎëͺvÕÕóB‡\i*êCÇŸ=u @@Ét,T7Ûµv¿.–š¼›Ù&e+xŸ»‡&Ó#NíÛ„FÿE³ ¬“h{B;¾þ¨“7äFìTý—¶à¼nƒ|«ÒÝjÞ×k¢L®Ÿ Ŧ p�G oÖžÔ¹Œ‘é‘{k�æâv6´'HRšÛùsO× 4¾“t?Fz+O¨Xs!ÁÞ�ªÉ„Áð¢táÏܱµÿÅ¡º²UˆÍUÜOÃò×Ðç€x]íípg|+Ï6¸ª}ã÷ãl5ç¶+TT 34ÉÙýÀ.´ ¾×:�h]#U±Jú!å î%�ÙU£¯á‚Ê@SĿḮ‘ÁÃÑyC|�c±ŸhÁæ7u¥tlU�à[½~‡^¡nçüHm7Sê F—q†Õ€iã¯þRy*ÑäóWVœ%µ! &Ä#íãA7nÖÏE2OÙ N˜Ç¦p´ûc©,( ³¶¯ª«ÿ#ÿøˆ¦ç`!£$BÔÙªÃËVHñ>Èßr£‡I™À¸ÊÁ·|µñ¿îÇ–€ïl/Óç:ÛÂ{�FÄß²GGªò΀ö(DiKTÇ€mù«¯¨”o€p= S‡#W;¥xº^ˆ �§aìN”Âôú²ó´?“>ÿX×êAÁíÝ'*Ü85§2ë±FO”f–æä7›|v³ƒ  ®›é œ�ãrß«;ûÿç|'X_òàå|ÉÜ»+ÛÎI'SFÜ?ã7»Vú¯ˆ!•{m¸®õ‰?sëŒ|ë®ÈŠ·Æ'vŒ«Ã¥?¶ £rŸð�òCçaæüýßQÉ þ.¬ªþTUù<õ¾YSkËÈùÔ}ÞZ�ó’ mæ~6~¾†K6< ­}À…ÏÀƒ(•J•ÿÅ€f å¦:hõb¶CÑIv×dxþ•§V¾¶¯-�Ôﺵbô”eC2ÅÍï»2öû²÷.Áë?µÅPnH…ègõÙ¡ŒöЂ‡,Fã;P_¸K{„Hª:ýPÖv *Lý'ê%ÆÂ›PYU~§%­â²žï˜âÁV€ù4¶Ò 9—«®ûÓÍÖc¨;§ÿÐ’T)3(µömfæ~ªÉ;šñ›.ĘºœÈñˆkhÎÓ×­­�·røR&šähö35-âE±ooVÊÛfŠ gáÜð�ÞO÷³3o#Õ…xÚÍ„pB,ãЂ(spfÓž�˜ÁÈši×'N Æhöˤ¥¶Ãšñ)òhl€e­î®7Ó/Kæs(Z—– Ä+6mÁß)¡±ÛÀѯ±©¤?B}1½aß¾-ä ;Eº‡Wn¦ØzŸ]DÙÿñƒ“¿±ä{ÀþY7*#oú%ã*;iž6¤Ë=-æBW�â,ÛrÞÕxB‚m™ ÂÆ�‰(Íú쪳{ìÚ·éév»½áJgWvάYu Êþ•_ȰŒ¨º©×ü¬4Z\Œ©ÀÙ®íʃ} ‹…2þà<Ö$ý°V»Cd]�RÙÕî|ÔϾöþÈ7Tq×;ô¢Ûàæý§3óB~1�ŸÓYäœîWKMH¾­Ëê™æ6ÉDûæ‰.ìeû(L§aÌ>ËBZp^ãŒ@E=SjÐî�òVäd$yp×Êj°MyàF�CæÓQÁ™k ç3"JIHP\.±O4Ád™I<}~œ•€èi‘Û ´?ÚÏ®�qSÂÌ bUcÁ£G';JL<«Y´âÙ,)ÿDõ@¯‡1jïÒW?í¿Õ”%ËËÑù¹Ð¿ïF