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Ô ‡þÿÚ8ûB¥„RÊpߎRŽ2ß1í¼ó³ÇæîîîÖÇæzÌÝÝÝw”£�oeRŽr”RJ)!„ðý£ÉµéšÇ%"&ÿûÿ�A–eŒ�|Ãç²Ái`ýC¤ª”Ô4ª±"i‹óCÊ“©Êû³†Â»òp>JõžÃ@zGˆýGRêñ-6£¨§d% D!—Aì!=cNCh-êB^#༤¯ÒÔ+:Ñ·ÙÏ&½Gf¿5¤{ÿ¬—ÓM²d½#¤û:d{éþYÈz…ú GÖ­Û6û�ÔKi‹ìßW¯c0@>¦O¼¶`�>‹aˆ¶�z¼7ì�t”ø"’ a”¶#RJ¯vb  m[ªTMq`-, •YQ¥+0fá§„V¨ºAu/)*/í0n¦í¡`å•¡<þ×Q8ub{ÁÀØÂ'”õTϧÏËgë!‘¢w.\{)Ñ{GÆä‘”ޱ^¯×[za 9ãÌ—(¼Î €wyo™¿®¹ôÚï÷Å{Õ2mUö€º àkkÀ2?qˆÉ¬úay4¾Â´5æJ¼ff-¥r> V§«1§Áçtq lc—�cÌf-®±ËnJ É ˜í®\Àšx5“)mìÚ�”Ms2I¥n“_&‘òq"—Ôô–Lòµ‘1¿FûR‰äòŽ©msÑ÷µLrx"[íí&)7¼%m¦ T1ÿäQ îÉ/¯U�<ÀTIzå¥B‡ mˆ7ÊbDµ1z¦L¬ì˜J^Ôϵþø~bËÂ;òx”$I?QÛôUP¡JuR¿†±q¦r4M%y& ¦8œ!@',@—¸†5@;Ì`ÆS§µÇãñˆ~î´Í <š�ñ]¬Ï�v®œ~QJ’ŸÐ%ö=�îypŒÎ0°†ž0ÅôÑ S5ò¿ ¶�O¨¢£‰‘KMÀœÓÖn™-ÖÅ…ÏVà{±8}ØF÷Ø$õ ´¦:ŬI˜M7ø#ÙIníBrCIm>�Éõ„¤ÀªšÐêb±<€ù6�½õ‰õáVÆ‚)õ™thOô®�zÔ¥˜Ie,=3)_¥!‰¦C´E¥¾ÆB¥Ø½|´çRShT|ݪUwßëƒ÷yÙ¦âtè¹‡Þæh0‹é-χä.*{ès�<*Åd¦Ò#·¢6žä_¨rU˜Òp]˜-ÖF*×}¶éRý5•çsI57‰r_`ݲÈ‹InŒ”>:T/§Ÿ`O$¾`~@jõcò÷ØÙ­ÓÀ½ ²„·IÖŠ+ÁèÛЧ(åžÉ“/TR|*€úAò�î»*D—°×(4Û=ö5ù«+äξƒŸ�f*Ñ }¿½DõSÚ)põOD’à¡„S'ë ‘äu!ÙY.‘xJ`;#‘r£1vM%E¯Q­IäÁÎ�‘ò± Ò`½#G+ã{æ«Ô�\`ôlÅkNí[Üœƒº9Ó±Í$³ykέéÍCÕ¾ôÄ*‡‹^BèÝ�Ðxáž’á6hæô´`\²g ŸÓÛ ‡œ�¬YÉÃé 2›{æc³…p(Ô€ù�Ͱ1ŠD"!¡9]` ²·p¸˜u]‡Ñ¿?zôƒ¼Ü¦fWÐ/Qþ—ù]ýWxKú®èÙÒ”pÒ^´@ÔŸIØï�Ø¿Öï€_Ö\Ò¿è�²’ÆÁ wœˆâù(ÿ£ð0Ž/C<Û}_ìúËÕ÷ГõpŠ˜‘PdÄŠƒ&$R–�¨Æ6ÿÿpm ´î;ÇŽB%75dÕJ o}còê.ú!ð·î"�ýŒŸGâRÝJûUøár'wk"GÝUKŽzÃðÄT~ßïÚŒA‘òÒoŒ¤' „ ÒdzÍpao)’ºîï,ùô8ÄtQëă†^$2ñþÿà €ôu{­¹¤Ä3ÙÏÒÉ®çHúz·&ëÖø–ôsµ™€†{ò(ƒÿí ¯ÿ…/ý�ÁžÜ_ÄRóÊ�ä]º¬CÓCjÞ•‡áS梲¾­µ›´|CŸR+™ÍÛ¦Vh˜ÄÕ—þý½îË›sÖ�jæ2RfºEéÜ•ÚtÁP�'¡éò7*9ȄΠŒ˜@a ë�åÀÔ‘»‡�ž zöÉ9�å| »ÑÑ~ÛY¸éa âë¯ý`›HÏ÷Jnî‚õÉkù*—ïÝ·ÅSëu<³(ÆCv+ªŒ$Ù5@¾–„DÜ­¢5µaX2Ø?ßBãÝ»(L¤oàæÜ kÿc³?Û/éc E�öfú[T~Znu_ò×bJê‰ß¬ô°û_Z��“hÝ> `;®)œ¾±¥Ž`É·å=’$Í´ÜI\!¿h6ÝUVðÁr䟘DÉM^Õ¢ôç2ƒâÛüýzUˆ§J§{'¿�óTÅc6Ÿ_štÒ%Ï«)å”nsmZ5ÀžGª1—ž1­Î�Y9R‚Õ_`?{ÿ«�´Y๰Ÿ£IŒðl1w@°ßìHú¯x�¹ ¤ ~õø2S#Vw#®¿ìz6ŸïŸ–At軌3®ÎFQ†jJ¦)AÐ|ϹC‡ŠI a'vþ�{%಻³mC&‰}A R¥ç²ó¬l‘šoœ\/ºà�iA¢öŠ”ïkìS]©l¶@ê€3MãgÔº.E|[‹ßõ ç‹á/¶Öôá©bØË„æLØ„�rdÖ+éÈò<âßCÓ„ L¦ ;KyË×àÿíU{VÇdéœÔA|×fdÖìônÊŒ' ‡ÙN§ˆûrlIÁñ &ë\q¼ ÖO£“Áÿâµ2f«xY4ßöô”ìÝtF¿ÆŒ ¥w÷èÌò‚A ¼Öœl±ˆZM uþ31£J ®ÿËn¸÷cƒgˆÌ–wTÚ»t4!Ö�3œÏjÈóR…ût÷ê‚Ù{àð 3ÎÄ´’µ94i�¹o˜{uÈ ÌSj)ÿp®ûoµ¤�ú¢S“‘PÕNlB>õ‘ÃÆâUsòWò¥Äö/*çÚ]žüEv¡n+Ûƒç{­muß8cÂ�xæÍ¿ù#ïoÿïØç¿Õ§FÛœïr©@4f·N0 Ê¢º`’­…<sß'™{nx?VŠ‚ÒñK�… Q:´ ox4Æ ÷×Ur]¨¼ïÈf,x–˃‚¿»2ƒ´lÉ¢&¿e£)*ûù’:¨–›Ë/¤ì£m¿á¿ô0€