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 jÐ)�*‚‚>1‰C¢!¡j­� ²›€=Uå]ØþíäŸóõ�ʯæÿC?™ÿ`üfùæú!ýò_µ˜ÕñŸà=ãýz~£õ”ú~¬úVÿ£ÿOðsûQûUðú¹ÿ;57·Oë¼­^ÂäòüGôoÙo]Ãø/´¯öÍûn?ý'üÿæ0çÿžÿlü»æE™õ¯ô~—ßGúú/þ‡¸‡òè_뿸~B|·{ô3ý�&UÛåÏøYÂùLEWø“J3Òq§i/(C)³IÎ*!{u�ÂYœ²)ÚCúJ�¿yaâd,x1‹(³xFJÚÒ'8ª•¶~¡¸µ iCa< ik"òØ.Ø1·BÇ“ÓÜS„—Îu0åÐh>V¦ÔmÐôäcÉ*Ùˆøœc¾)Œ†ÔÅ*�׼韒äò5kôïE5O *–s‚J†Éˆ«#�YzLõap=Ï{‰`dp (¬v5}zÏ&\$ÞåN¢}O’�dË8à‹ÖËH1W{é\É0«Ë=‚–ô£,G˜Ì>(Ño—~ËkV½=·ÀÕ£ö"ؤ¯öÁDŠù•ûȱƬ]QóùóO¯Öc°¦:ü KE3ç�ž¯« É3ñxïÌïÎ0Ð /Âößþ“læˆôІ9M/Á)˜Íú„ƒÝQj¿Ák¼Jö†Œ,éBMËzïxg^°»;¬1°Y‰èŸ ²q¨é¤�¢ZÇÍòPOˆîñ›è%�k&ÞB^ó‡üKR,ãøCÐÛv})¾èʈ<±zÓUÎĆä'Rv¯täø§Z^²`(W÷Õp5õÊ:Ø“hE—kÚŒ¤³¡ ò8Ê8_lëSY/åÕÞîô›Û(ЦiÏelÁß‹ ´?R ©w<��QDú¯;�Sx²Ò•v{»tñ‹ ß `(JÞ×�œåWzÁ™âĪþãÕx·`ÁI“ŸRÇׯˆê2€tBF…a”í¾áäOí)¶ÿ°Ü æ&ÇnÞ‡£ýÀxÞ„ŠçÝÚÔ‰_‹À†¡}+p*nŒ(ÙW–wþì¨_ö°4õn[+{Ò;µ{¿•pû‹ƒFWÌáÝ‚úÇ/¶å-»Lé9m°Ö0¾tóïþÐýÚ=Ê =¾åâ9 Jyý›»ò™¨€°häqùÚ¹ë�Õzÿ;ª³9H5h!¥}6j7 ‹™+]ôÿ«H`fgW|Wq´0êL¤Âø‹„µhHžñ»·w>º×³—z¡ÁÕÿ¨%Šïù‘YÈá!“kzM» =øßž¦—ן�¾þþ¤þ‡Ð ðÝ#Q#30Ž€#Ý�{'wQ? âƒ"ª81ñ�gš›DØ  ËÀލcMžô¬ Œ8jú«µª5þÊrûóç—Ó¯¨¸6üK TEŒåLn›rÛ?½ò•H¢ª²ðM^E\ØLÐ*‰ß56o3[–å ä ù~>rÖÄA2ÏA+FÔÅèŒú,ÂI Õ+žZC>ÓH¯°¼Ÿg%ƒ¥í¢€4\x„}O^·»þ �©¨Ú³Ñ0^»ù ¶ÑÙÌݶåÕú©Ðý!ÎÞ±>ïáÒg˜—6z3ûm ”ƒ9QDÄMI±&cÚ&—ÕØ’þîS?t¹þrw¡Ú�¡PN3ô¬4F4Ÿ�7Ô,Zpª*á:Ø Ï†‚’4ãâj=…�ü#Iù ê--�:ì0jf�U†'Ô“´_5sËÇ2öß/�ÿ˜õ¯ÿ¯+À{ÿúú†‡Ï^ž™£ÿ’ýæ›d|¾yàã�°z{H�” ¦hXÄÉ \�þ Åz–b%ñ,ä¨\„hÉn‚O7ÿO‰^€…×ÎNE=²kZÝP¶%9ý=KnF%pŒÒZÞ˜Iu˜VМez÷ ·ðf€ßFÚÿwo™A°S¹83úØr=)ˆ½Á:íl·Ù#Ýš·—ðÆÐ´†Ùh7ÈGÍzõaIWþåSS\Ÿü è»6ýaÕ®ž�¢+Ñ÷ª¦´ÛoCød±B—Óû Z”Îæ Zá]xµâ׊›sêÇÓ��.]'�Øá¯ùÍ·ÛãWRj®rnÏëZ¯áÿ¶Àa£nÕš7;×_\üŠyîXÊðº€ÏÁ‹Kv\¡SuÏ +«ue®b‹ÞÜ_ÊO®',Ü