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Ûâ¸z†%„²,!,!¤RoS÷ví¸UCŽ-uo¨»׺»7Ô]Bê¶FÝ5„5BXBC†çÇLvwÎÙ9.1¨M¡AóºÛ.à—èö'X—Ƕ:õ›¥°®OÑk �У�3iU]–ÓgèòÄ ‚ºÈñBä«ÿý÷¿ÿþ�-n�t¹b~]ÆD?]LÏ á†  ZG  ´tvÔy;ôsõÙ`Ý}zi/üGMñ‹/º�‰ôÕŽØmÄ„!­Ub[§!‰ÓÊ©¾“8xɈÒ/‘—¾˜ô] 9Á „ Ÿt€ÚW'˜ªeªŽ˜V“´êŒ`Èm;~}�ŽK”ŽwÐèH2±¿¥Æ»E Ÿ½<àÑÊX¡|ºuŠ€êjuYyöè4‹Ê6eçv_ó��»7L¾ïÖ•&Xæ]x˜dÖè¶µäÖÎ,`„Lur€I ÕÒ ¨VNÓ°?¢:ž£Ñ€¡fsHYa¥È‹“d¹ ž‘¤œ+ÇÉ"tª$ä³&¾"å$¹²“Ìg^÷gϘt#Ká½Am‡„™páM²¨ŸÛ'1ÅQÊ‹[fÝ`8]•ÇjäLJŸ‰õf)�!ÌvÇ<žÅnîm’é�EêY)E'ä¸3Jy°»yKD>c^QáAFìUôãK­\q®GCž.rÐë89EÕ�þšÁÞüìb¢$è”°€–fXÉnf°@ éÁ+¾Y¬äj¨—³T�¸êݼg!g@ÖAÅ6ê[ß\Õ�WjÁ4ëV,Ú�É÷S�‰Ó',­ɯV7‚ºùÖpòÅrÔm÷–V�vÇ9.mëÖ<@È¿�]„jÚ¾{EòÉVÀ\ ´½@†¼ž`0ªœäþ  ×-’%­ay±UYWʧ;@Ú‚R2òƒµ/6€ … cºÝŒj×ËDJ±[žšÍßnŽší&¤¶fBÏ!å!€/(gêQÇw�šãÛIn…qIP]`108Wßy#â÷0VP8 ®�#�*‚‚>1ˆB¢!!IŽÄ ±ä�žüË™þ n<ùoȾódçóÓöïÊìß?À~7|·ñ/þÉÕ‡Ìðïè_ì¹{Æ�þ«ÖúŸÖmèúWéŸþßû7·îíW²“DÙÏËWJ³7îâý±.c–{˜’¯øìÁ¼`å«î—gÙº7²³# '·/V³i Èšތù¥ƒQ¤¨."88 CøæžJÍÈ1eQÎê.ìø�—¬Y玳@‰²9ƒ¹éMò³É¸€ºìCÞb. ›ô¾`õƒ�¬�™+`3ßã¨;N\O�YwGgmán•ž_æQ¾J»/F]¤�C._ €gYoÔ\üXu×_ê<@þôœÿëøBC\¼‘3À>Ú b˜¼iÞLåwn¨—ïÞ€º5Èi“Õñ»¹—ÜGrCÔ@=‡=©X£Î¢á@kÀTd¿ƒö98¿¢3»ÏKC³çÒó^d”–Ïœy%™3ÅÜúQ™2嚸B<7€”Ý€qùÄ©žÉÌ–v5|J�n¸´ßJ •¿î_ÿÜ¥9 ‘9÷È ë¾Wâ™gñÊž”1Úò v_Åä/\g„] ë£+x„ÆøÍôp90_oœº1,‰ˆÕyl»{ëG#9ÿòãxŸþÉ�ü 3ýüÛ‘ÈŸ(aRf]ÅÍ'ã�$ûЋ¾«åžÒVRøG˜Â[¨§ivdÇ Žï@Í$k¥–0Âô± ï�ؽ>$ ]Õª‹,[6|­fDºÙ@çé¥í²\7:*ÀŠ=×6ùWô¨¤ûq !7å‚\ûžç<‘Þpsš¹ý½¡2âØßò8ïx| Šrp2¬ñlÜ5}6¦§?ftU\è¿¥u_;ïk}-³ÄÕnêÀ%_ª§wÄSm´žÅ›Ì5*\ÕÜÃÿ¶|Çl÷ ¡Ip�#Ù»^ˆ2=Ú ¨BèåA_ ,]¨‚*O~Aì!RêâáÄŒ¶ÞWæAõUããM¼!rø‚rk¯q‰¨]‰µ8šf»Ÿw¡*° ¨K9LA¯ìœvPXz"+t$†•ƒšaZÅ`†ÅW•ßU,i©é�PÔy¨ÕÜE¿ù dqÄÁ謓ÿ²ƒ$ÊùàbóÒ®Õ$k1슼¶>Ÿã'¶ÅIÑ"̱4šÙÀ3îrq€¥ú†›÷Cïä-–ð cí®Û¬µO¾ 6çðR?E’-‰ Ç­P©µ*ø¶ÉA½“ *�£wÖ¢�ÜÑãÆü'Çou?U“¦ûvBÝæ�UJ3Ç·ÞDœØ\jLâoV‰Uoõ[iAÙf¹– A‰áXËøý@=Å^µI„9¡-7•~I=ñ,ÅìU¹?<ÑÞ¨Õ™ŽÛæ æ‡èÚý¯¸À«Né>j÷øEºþ Ö?®©ÆP&Ü�Å.OriÐ]ßð†œ:�’!s‚|�5WSØ£^dõY0£A2çÃ�â2îãÏkT¬Žr7� zÝcÇpbn¾*~CÎÐn �$¾„íã»b*³ÜwFI Ž+ +üÑ–ÞÑj„~ìû`�‰×èNs\zú\E|Vµ?ÕCK…óøù”=ú�¡·�-�À�8cÎzÅÉ·äÊïÙí¨¢ê!ÿÿÂp ?ÿæ �s—ÖÕûûÂ2€sø~ßÅ«¿ZmW—„Ý^öäÈ×­¥0Ò(§ßÒU,SÞÅŽk€†`Ïñ ¯<7­Lo¨GÉ¡& Ǫ ¥p>–À~5 ÿû%@$Ë16«òê~[¼‰?ùuÚ~jÚw6þù×}Ò$üóoõúj8惇[oÄ"CM°9™i0ò|eâÜÿÊ‹�ÃÊ|`õD&êËŽ=–{æ—]³øL!Î<Úê…$–ÿù¤1ª¯ÿüªØ®ÿî ÿÈ}¶¬