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 WEBPVP8 þP1�*‚‚>1ŠC¢!¡jÜ ³·pºMó�Ìÿ6húMñ}Uòâo쟔�€]kÿÛ§šù?:7vÔ¯ƒÞ z%•žuØ™ü×ß L7øÍpi9ÇÎåzz1‰ý�ÍøZÔOf«œ,t„È&õK¤'D²Î«š®‘Oûò /�’+j7rt>?Cœ=:Ž�bRØ�ÙÃPènªÙdÁàw�+ÿù`å�þ £Cüˆ°¯"á´LÒ$Bst¿ßÚêY¸Î0Ì–Ä�4»Å›šŸû·ùÑù,»ý½#Íl$§†½=Ï£¡ô8½ö±V›1òã1awLE7÷¤äOÊߤho˜Wnz’2‘ ªL§-̶bW•asåð£_kE*~!pËîCî•ÕÃo´½ª¹'y×HøÚFn‡fS ãAN80 íß» öZ¤( Ù¥æ"é<�ÌËêáHQ{ØE¦[[øæû#¯Ð÷‹NzbhL´Öþ$“öÓ3fZ- ÌוûAFïßv®BGmb ‡ðhå;q®÷ÐXZþbéñzJÉ»?$9:W�G�¸+¸[Ò'Ÿö•”sËÆòÁ!¸ƒG±â*d¨l³y—ðú:2?OøÆ,bÊO,ôy;¬b7Ù_nËÓq\øî\ÁBÊ-`C碟ÏîNpÀÛ•ÐZÀ‡45ÇÖ^0IHˆÿXçÛŽ{ ‰ç—ðeé¡.ïf$1¢·ë1·ùEy½Å ö„-�‹�\ÌÿÞŒÃIÆ/b–X¶Ó±|´Lqò·Z1~B‘˜ÉdAg°BÅ�µµ†ñßlx®Î…V¶%e­vÇÊ wÊœ»éôŠq þí.ne4Y néÑYM¿•9ë,ªä¥Ï*.«ÄHÇ$8|.¦QSxØ3wè¦iUpu tQ¼øÍ�ô èì) ¢îÃäL1Žå‘ÞFKþ˜›)Þ Ö°Z,ÂÑb»ªqHJѶZ-0èR«oÚ§k*"YdÝJ15Ì‚•.”!ÇŠdΟ±3jõ'$ŽÈ_Ü|Ál¼ñY§-ßL„�FÃG4»Âv?±ícÎ:?Za±„‡gxEy‡4î<¾ù, R¬wæ9…í8Ñ@¸«~}2¨YêF@£uN�€Ê% s�ã {ô‹„�wä¢:»êeñ3Ê̘ÿjöÏÓ¨7öÆÿœ÷=ÕÕ-·B í§h¸^U!J£Pʦ|&‘„Ú`ÇpáY„^ªŸûÄô.ó&@[HN+~îÐDO&ŸÈÒ‰‡Æ©ÿ�º7Ÿ㉘U«§s©Ü£„5§þMñüåŽÂóë{¿ÍÓÿø>Úüe}¯…‡¦ Ö%'z¨o0±ì�Ö ñ7–öÁ;ŒvY€äbá¸+•yOR{'VªîŠ·%„Ç)Vœ„ß÷iÕ>‡¬åüyŽèú·ªû«ç-pdÎUÕ”} v¿œkS~u'*¡|tM�S€-`t»ÿCÀ•«®4~?$÷lPXÌwçÂïØEi÷ÁœÂt†¼ÈÈÐæéW��oKÎö/ôý«’zÐTÈé1;]Ù7ÜB=§|fÕý÷’:ÿ }ü¡ÍóBÅÓsRZ^ýLw¥¦|Ðô¥sÒˆZ&faK‘@q±ÜÃz‰xoæØU×+ ¹7Soª®M™×�"£$)»ü„ɬûüCÊN!5…ªÇD—‘n0›¾iìÕñµ&ø}uvÔ®&øßWr͈õ`Å“†W›åj ³xºöÜmìJÿø’êù±¯ñ ­h«ú�éÕ$Fè®a×SD̼�Oü1»Õ8°Ý¸)S‡yÉãýe~"Óì87~ELHQ‹²šÌëaOÆx,�(ŠÑ JÊöœÀrOŠáôß%aæŽÏÅO\„a'ÒQƒ@ ¨2ôéôÒD{ùì+´aÝ×Ö%ÃÙ•­Óâ†;ˆ—,Ч-… "×édq×0:a�¨º­Eì!LÑù @\a=’ûÎTSAË�l¡À@5Ï9-³('§”ÿ¯ôŸ­&ÿüq–ƒ´oæmˆt»¸W=[E?À¸ZÑ�œÎT˜ë}ÄVA¤5Ç;°Õæù_3ò0Ò—ƒ(+Ãtæ¶œrÅhh0–)ç¿h