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 ‚ ð5�*‚‚>1‰C¢! 5 ‚YÍÀðK>Nöw`?hò´xú¯äèÆàÐñŸà=ê¹ÓzÀ=?Jý?ÒÿŒø;ò1¹¡ø§û‡æ?åÿŸþ4þæú€{2å_ò¿ŒÞæÿú‰õOÉ/ìÿ¹^Æ}NŸ…_�ÿ"þ±ùgÁ‹M½½8ù/÷�Ìퟷ~ÉŸ¨~Qû“õùâçð°á_Ç¿µþIZõ@ñoñ`â?Ëÿ»ÿUý™þûÿÿå«ùoî¿´¿Ý=£þSý«ýoøÜ/ò`ŸÄÿšÿ…þßû™þ ÿÿýß¹/\´^Æ_©¿øË»G'p÷å#jûn±¼„ñác=,]•Ñ´á?F¿¼W"iÕ\&V¶–ˆ ™2¹ £š¶´)žÚg쇲P 1Lœ–bw-&¹\ ÖÔ�ÝÎ Ë *e±Š¿R£W¶ „È�@¥LŸÚ• Š�ü]�ãŸÓþ¦�[ˆ“uËŽ¾½Èsç:qlþ®Pì£À;JL̦69ÕˆÝmX ZtúI]…ÌјùoqÒØÐ»§ª¼^ƒ?*G޸߈¿°þÿóÑ®îUJß÷=ÀpÄšZ2�6$Á� eöHrMƒDE2«ôŸ¿bÈÂ¥¤q'ˆ®Ï„T™ ÷sÆj Ü®¾*&|·�ú†Ó[ø Å�ÜžZ~Ò>Gþ�|IµÿaUîà©#ªt„æ â;ÆÑ~õŠüê¿.zl�s´dŒÊ§½‹øG"ß⎳Ó2 õ)˜wÿ¼T­á²%-÷²ÓW•©†µt=9O“™Ç&$müG*¾FÒ°Üy�â›·C»MÂè´Ž/‘¬‚ã>ÍG•»…ç—÷�³ö›Å?_w_Ãðä³—`Kå7$ ©‡¡§Þ�<ö½¸d÷ÜC…¶#=ÿ2Óüd—>W�y‹yÕ¯ä—f`êÏkš‹"G«­Jã»÷3-ò¾ÏKþIYr÷ÍD(ÆåR;ŸªBú”ØÖÔÛM*dÈ$É@ÈT·ŒàHÂç{~”€½¶w%Sêê±Ü\zŸtÛñs5z]}þ©¹O¾n1_ú #¿8™ »©µªÜì꺅VþÝ „ûµ$¨‹ª¤©Á1ÉœK£Óxaxú° ô¥á� å àL–Æ©ê”KZéÐ@Ï®øáHLªŒ€jÛ8dÛˆm­Ýà·¿“Öÿª^ïtõ¿ê�Uú¼v@¬3ÊZÇíBÿ©~>¢®VO ¶õZ¨‚€‰ÍC!’¸Æ…þ�”L¦´ÓBm5Õ ‰2N^-Ì”;ÇV…n‘1$\á%¶X•ÿü5ÛõW Ô"àâ^Ý)+uÕüg–7Kré>^0É_3xÉMfù0ߌÝ?ÂÒRྫྷµ4ãY ƇÆZá y}{¨Gƒ:-ª�=h2b“ÄXs¸ä½_]Ç3Ñ”$@¦/oùÙ¥‘ȶc´EèŒô5;} …�ÊÛç VN¿ûŽE=UšcÙFc Væk°f íßÿ.M­J€Å5Px1QgËfj…–b”¬ �þÓµ�l ±îež¸.Ž\~‘18mçXUçrOŸµÑ4j�®²wËÍEÌmyÂØÞLqKÙb„dÝJITÂÖ–º�Ã�§q*%YÐ(ëà r�ÊvÑ\ \šÆ´ywGwyD“F,)¼X=àœHu¬D2P=~ƒ¬«9¥ô¾»vèµÝ‰Š»7ò‚õßñW`QåsH¡¥ºX(‹¥úy¡ÖkCTM©Ì§ßÚÎ5}}Ý͇Çì{ZÚu¥åˆ-L[_ã÷0Ññ~gž˜Ö?ÿwµÈvç<ÿðÛ·fÓc#ˆã-ûŽ›.ÔI=ØÐõ·#e#×ó`æï [çy ¥ºô|Qmú¦íŽªztÏçóîr´Já õgã{0§Jƒ£Š¼Ó”{Üg oî"‹PfïÑoÒú¸1�t‹6Óš>ÖÕu Â[ô·¿^ð|Ÿ!Ê~ó"ƒÈ»'hneƒ7Ô|¯FÁjºÉêûÔtM kbã¢6>2œ¢©\¿�4ºZ†s¬ßÿã îÖ· >——Š-³ŽbXd�KÈ[†ÑÉñÔ+M,cÒŒs8+݆°adlùd[˜: Ú½ˆlZ"%³Ëÿä—ø.�­ðÆÐYóÿñÒ{ÇU%»Ç„mˆ:)e½ UX0S3ÐR¡C¥™Zz¦SdÜùY?±¤A¤�-Π– 5!R¥Ü’ô€þOÛYhÃÎ^2î•4ñ¯¤�gé—9Âr<ž¤ïP!½ÿ¡¢*å'©åM�‰Ä`Ã…°pÕ—ê“ãü¸4 gîÊ»J§ý'öŒâ4Èd¸¬wE–EÚņ€iÛÞß׺ї[WJö#0¤gi`A0Ø6{êåÉÌF@Ÿ¡<—7 ô�üøygÌ?ÌYje®dýy¦ÆzÝðîK´€@'Ÿ.“Ïœ˜q wÁAÎ1.µ<×iYÿðB*žg�2LFyã[Û¹À$Ù+�u>9­ùøß¾ÐkèNz�h‡#“Å_ÒèþÀ¢�F‡nø¹=·ù¯U>ΨMµ¯øQZ”1pU2™ eË’ÄÝ‚ “oÔ.4�Ýëò�RˆXun@_\šÑì£gÌpÖ¶åÖSû’‡ZU`y5›¡ý;†µ‚]çÏoq#OtZù—ÓéÖ.ïi�¥‹†ÄV\°% B*¸Í¢ Ü€WIáv™y»ôåu9ÇÆ:"ÁKV»ÜŸ�Ü_@…ÿß›åfA.æoÓf(Mrz,‹îǤ’)gº#ŒL¥ÿF=Þ዆h êT­Br‘]á&³×!d=É4Ü{û+Ãü ²Ã2æ9ð¹Ó×gï8Fji¼t„)ÏE®�ã’d_ÀaaÄJŠôþ ŽL Öi£êäÔ»E�#€Ëß¿ÔzÊÙ)°¿ëß ×\áÀÛIÄ U¸TªÞAÀ,Zì¶,x#RỄ´5ZÑð§›ú®g¤H�Ç`¦é‘¢�ä™ç]ºWñëFJÙ£¾h•¼mNÕ4Ë™ÉÙKGä>‘œ¸Ì¸Ô΋_CèÀºÓ?H ã¸m�|×¶?P³ÑºhÇ&õ§‚€ß:@¤ìÍŒZ .)Á‘Ànëå-ݨnˆ«hNkPüã–1ß—ÖÖè‰ÖÌ™¿sµ�‹‡X�&®†‹Yz~6ÙÝÿ¨ØH†;�*|ý½Ï7ml÷àº7íù,ÈD)#‘æ±Gͯ"s¹ßþH½n±üx¤½Lìܦ†K&ÜDg÷ì[ÕIÓªfù¿äºÌwþŸˆEð ò~�m�QûocpäŠƃ„£ÍpÉã�Ѫ �’ mº€ô²3°šÄLÀÛbJjâàá ÛÕ̕Σ—§T l r&™ø+F)»•»ýú0 ìˆÑ;Ë~»Ø¶š“