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']
RIFFN 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 – p,�*‚‚>1‰C¢! µâ¸‚RzªüC�—‰|7êÏÌþfò�ðÿÉÿÉýÂö›ü�þ«Üô¯ü¯ñް`?W¿g}›¿\½Èþ�~¼|,þ¥êÓê)è û=éwûSðWû?ÿ›ýÀgì—ýë²�=u^ÊHÿÖïÈ~`òwÀ ÄÁ5¿Ð ¼=ðZ�^«è‡|—Œû7þÍþ÷Ó»ýòÞz>‡ÿ¹îüÃúÏûžÁ^ƒß­…eõeY3èò6A81± îÛ+^gÚì_)P›<ò¡ºÙ@²è¦y‡>Šþ(3�ío¬ý€iÇRí6”IUOõ8˨÷¾fN¾š£â2Ü�!"‰Ð%9,ºÒ$´Ì�Ú‡ÚH4*±*g à~ ¾3Ã÷Íd�ç‹ ÖOÚ)µÂ©´å6J[óW,ˆë×õg�qÿ,¯ŒÑWÞÇYòïUÁ˜H`’jí¼ðÞ*hFd¬¹$;)üÊ1G`þÿóòÔp½VW„M±†ñGÓí$©ylãÿÕfþÿŒNqÀu"”ßm…ñÿJ?Àû ÿ£Ï¿ÿ ¬.aÌ–~ý8ýè&?ì@Jÿªí�Ä)M§ìÕ&2F­ÑhµÑÂQ‚„±Ý•Ë•‡@>L®ß‹žžm d‰ÿ(=Â!ÀUE–QÅN}&ÿ‹/i¹_CÌÝ{îšoøQÿx,�Î> 3–ÿø���Ú¶âk<ú3êÔoû'4Nã]CÓ–�6Ëßi=a€ÈJ€Ø|‡çˆYk¯ ¼¦á~²å5òÈÿÌO1²£”qÊd¸Ä8m$'™ ˆuŽhÝѪ'Blx[*áŽü°–eA�1kd Ò³ÍÌ7@ÜH¨?ÔÿÿæYÔw�XË7bùP4ÞE"HÎ�ºNŽ^š¤Ý…@gµ) Û¼Žwÿÿ£Ë™ƒB<"]¤eêphýÝzòEb{ûuâ‰Ãñæ ÐY>“ØñM‡§ûË«¶³ˆ½a;!\ýãÓb‚/4…ÃöñHÀ �gþ KÝtOWuuôjR�ãkÈHße’uê´»ÿ$u8z†a{¹F�ÖÃoL?ó‰õ–JfúŸ-3 oÏàí~Â01¬2q” ô6Q�¸½tÊôòÚk‡Ðß¡Šdß¾oáôÞ«$+o»±�…L†ý}5ãR¢5?–Vw�›çØÞðÅÌäè3}è½Ïñ #R˜˜�M«¤ïÔ¥2ßY¨h×T~*nÓ7äið,-r"Õ ÃCla�‚Õp8¿ˆk�v…“,sÛ�§bo-mJB³Ô7Ê' 2l&¤Üxæ²Uxê_$ ª©sR‰=—ÚÖÅ'¡ŽöÚb—¥Wéô6Mf‰š»>:sÑÔß—˜ˆM6} £ß—(û¢�Èœ˜§ôt02þ–ÿ ËžªÖŽ�O3Î@úÅÑÍ„NvOôUßvÂ1϶{ÛÇ`‹¨*¿;ã¥Ë«ä§qaªÆLf¦1RÖÅ‘GH##>ÒÆ|Ö¬X„¦èaÏuë›Ê°á˰p&‰�TŠW:¶¸‡ÂˆrxžZh}+“TŠÛ•=�pÙOËÌïŒ4EHÌ&�ΙÊõçiþ@u:jïdæeªê?ý“l'²Î,±*�!SKöWßœ¶FÙž�ío7#×o§hN”/Î%1*ƒe7^sjù­QRõkOJÒÖ諎՟�fYëÄY»sLÿühžZG¯!XPä²ËãU3Só ÔûkQ‹÷O¾åNcü›i¶¯´2Ê>™*ì:ðäµ¾@±«¹0^å·²Ù:ßE§à,ÿmØÏ%CDbµf˜‘†¼�­™øþ‡q I`FÖ‚+7Ó„EaJu™Ä’6ï’KK­÷kVù¯sùÙƒ�È~ëSÉâpx¦«æl7ÑÓa^NGaUP#ºbM+oq’KWLN1€{´öù_›ÛžÄ(�î´Aå-‘ÜA6[uÌlsI›>ªT�ïÇG7VÞž?,‹)´)nXª.õÝ„W„ÊœaöTæžÒ�–9ô�� k5 }ëR™PH€åncJgp¶ùší.¶y?Lé=F¹s^Y‘¤ß <€*H6ü5—ìÜêoH4¬°·8÷ ‚žZ|MŒ´ó—¦!�$ß?ðP8ÔÛµ¤ÊÒ¹N IGZþDê#·€:ñ¤§Sås†ˆ+6åÿ¼š�J­ ù… ± •r`γ‚«·²¯\¿¸ŽÇ'0"~¥�¯i£­ìkW *ÁCÇ`‹…,‰�RF¬gý¿É¸ÑU8ïõ]8¾x‹ÀpÈEÑuèP%o&Þ?÷¸××ÚÚf;]O£‰oP¨ÕM}öçd„¯‘Âΰ…%hÍÍý®¼�eÒÁAÓ•Óö/wûUPNØ*†(gQd¿8©@ŸÓÞ¦Þk ÅvyU™—I›.–Þj(ƒˆ ¡êâãWJ‚&Ĭ ùVfi(kmXxW‡á†ƒ²>Hã2È àÜ“³# FïÄO×íïžÔ dó#ÿ�ĵ•_ãñ4t¾’@¼¸ã½“ÞÖ[ûóöÓ”̤t`z˹äS‹Æ-ûm¢¿œAêÿíõMu55÷ uÈa–²ü˜D±O�³c=´¯1u¿íÈÃÝÌ÷E°Õ¶ ©DzAÓ·†©£ð 0¹•õ YñîŽrÅ­W%g #—¸ƒo¡c¨€D 9~ü•>¡I°“„#?ÜÅ5L�3°‹“FÖ1Ûí–“Yèo ™ÕŽ”ÄMynŒë¤%JB?LpÌÙI“NE³Ouà~ž‰RRZR4™"!yª¾E)eZ¯þ0°wÖ¾~•®³*Cwu}"7+ÞJÍup}}×`À•^.Áhr#JSäUS´äLÑëHø˜ÆØWœìD?xüHkŽAsP°wßQ @/™/^×ôë§—Rí“g�6N|¾AV<@„ƒ‚ô´\ïËvë�Á à ßUªáoÔõF~Ò€�Ÿ#�'6µ‹ñâè< χؿÙWÏåziב�‹ï·Æ’ºÂÏuÀè�¨á úù•±!×ÿæ³ÿc ªþIRvq.\…xÜûYªk¦?1'ã÷ÖV»Z÷)ˆÎ‰YCvQw¢Ç­ Vj‰LÆÇH#¶% *u¾qi)@ü†Û/Ú•œàuÒ{ç0¾»²çë73S³ÒkB¾,N‚KÐ[-i¨´â†ÖHцÿÔ‰�aQ>=¦†«ÎU“xWÚìÔ�Ÿ˜ÅÖù"€„½Å¡¦ÀÅ_ºÀ´|nÀ