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  †üÿ£Fúòg†a "AÜæ6YZØ"a{‘ a½÷Þƒ\ï^ïÛûõÞ¶÷¾!„+!l A‚ A‚ˆˆ Ã÷Åü'É_Þ]DLþ÷ÿ¿î�¨U*ÝèÖüº ʑֲÊöI^¬hzÒvY«\Á7º¿¶å»Þ©®Lúóù®¥¥\î)­¹/·×Ñ¢­'êZ‘½ë©8êÙ‹.÷mWøoþ¨V˜ªÃœ²�=òµ·¢¨×O)°‡“-A´ïo+ -ð7PfûÖЬ€" ÔÆä^èusçέ ŠþÐïZ«úËpÙBõ‰Db¢Ñ‡¹léS8?¢ �ârWëB†x.ä´�öÒ£¼Yê'ýaÚˆvÚÓs{×À.Ñ—y—íªªz‚Šês ™«tÀ)E³©©ƒ<Òˆ½èî§090ÊìlþµÄbÍŸãï)Eli½6¸oXbC8.$QfŒ^t ¡]fÙ�ÈX1* 0Å0À7ZÐb{â†DDæÖU qrEÐÖ DÌäÏ"²h¢ê«8øˆ bâ‘óÓ»bƒ•ó çnªÞò‘oÍÔ‰PO~ª›…ïOÄ„,  žL„ üÈ4#ê‹%ÒúÔ ­‰ �HÉL€÷[‹4SÊu’ì©6ÊLhd‹jœ²È³·­„lYžäYbI™R+XtìóŸW­Ùóâ™3Ñ@¸“òÒÌÞ$ÉñQ‹4›ª’6[üR¸;ù*<üý�«Vy2ÄYZ¿¶”Å«mdÇU·ÌȰYù€lmµÈ ’ªÿÏñA.. ZmM D]÷;M‘z8ðbWîâ²—-[ù©Eßwï@%qÕ¢£u6‚Ê,j¾Ýa{øåD�Êý†í¶@%_hû]½Iv¬l0>m áÿÿ×LVP8 d°(�*‚‚>1ŠC¢!¡ɼˆ ¦îI¬ü~-ø�üöG£ƒfû½øù°¯Ê»ˆÿÌýÃ{«þ‰ìíÜô[û7æ�÷¾à¬ßÕ}€*þ¯ý÷ý7ïÿË�öïÐqߪ¾ÀÎÿ©ú:{KÿKì û'ê¥ý³ÿ÷�€ÏØ?ýç~ÿŸÿbÿ«û§ÿÿäЩÝJÿRðoÃ'´ä‡KûæÊO®zHýnÖò?Q¿îžª_Òx¸úKØõ۬짱/ìó2“Çaܹ�ãòó³Ç¯H�g9«#óûì“nâ5uÐyØ_j=ržc�]œ“Všxþÿq“­ætUñ ¿îòóa–D‘%�ÌŸþ òöÐN½ xï—}oÇÿr²oºIGθBY'ó7ž@S´Úí¹ÒéjÓàøÉ`Q¦˘ßEð;—1¾‹àvìþÿá…×ÿü”Išd-ò÷ýþ([Ñ�sÿúŽK¶'Œ†»ÿ có´Ç¶.·Â,2¢…»Uâ~Sþš‘uà–/i¬î"Þ.nסÊÏ<•Û^\ÝšË�k¿ÍS„»^qFëÇš8vã¿Õ¤±”i»]å9Œ¨±áïž´¯{j+îOØ—ñbù!xHkßðæ¢xŒ2bÇìAB÷ÞF…=è}›»÷½bÚiƒ&Ex‰ÔM�@7Js„ðÏ7þO!šÜ°Œ,#™d]ðnõÜÒÑùžg�¾â…%Ewèa)¿Æ,sÿ-QóÁ=ì¿õ»ä-æ:SÃ�!Ë¡¯QSZEÃŒ1#¾¢g±.�¯ÝèƒJ°/˜ÿ(ÈTY ûpxš¿äuÇ®‘öÝ’©Jø<ãºlÀVÔŽgfÀ ãÚ–ÜlásbÞù"sYòجÚošƒò1xóLÿïO‡½gŠðŽTRp(Ø(^p¥ö‰E(sNÙóË™¸‰;U#5–@ÍOî?Ûÿ€$ëàY4“áv¹Á{Í—%V0ž(u*#ZÅ„ÚWr%j˵·)˧=6)û*ì}ã¾Á¶+zoød˜ŸÍ¸¿b)õ—‘"ÛúïC¨MÉ6¡Åk9Íj�K<;’t» ½x \þNýÏÕ0 ‹³ëñ†.¾ÁÁêè8$j&¤ JNÃûK,#€¸DŒô{Yæ° Ò†£óv‚¿^’9à&B¼NvÁk4SŒÔD~ü@&hØH$•#§>‘$ꟃþ·óú$xµi¾÷ÿTÊ.¡[�œ @´õqpF¯?†fð8©?•þ•ZzTࡈL S®ˆ*-5<XWmʵØÄ¤»•Dªt./G=Þw*AòwqÅÝ-ComFDû¾ß~¦[˜5VJ¼,•|’Ø?=Ù™nØ †c&�ŠW±š@Ñ=< VÆÈYσååË• ŠTãrࣿ@»®Œ?“7�…HÕ‚�öcÅ›DÝ”ÅÌðO‘ë£uÕ¤‰+^¸¼Q;J®§¿GðW¹§”oïÎâ‹‘ïKúôDé™,èg÷žv4’Ä'EK�[ˆÛ‘:ÿ6Ь|Ò¦/£~ìú€Ç�¬Ù·¢üwU4¾àvJ•Ï0¢ž/‡ÿv|Ë^S�˜VWzÅÊnÊx"åd;±’åäa¡Ó¥²†Ù°ˆ �lÔõ¾×ë¤$ûònôGGÿO@·0¹ˆC|ñ/6Ûî5,ßfâ/¹×ûí�)04§»­Ð�}î)¾în“a³õ×�±wP½ùKá,K^�ÙºKTÇûýXqçó܆÷9r�ÂÞ3ÃêÍ‹j&@ëT‡è$î@=ˆZ¾¸ïŸSøèzÎ_�EN„´;»Ò‹ b!ç÷B(8±"�‡î¬ž·>HX¤DoLÕD\×,û²eÖcŸàÄ �nj`c¼‰Ýu¿Ûÿêïð.ÿ>7Hâ¶f\èSÑíž}Û-ù4:Ì„ |UééàÐ!¤á:{l£ëÛö| –†ì]ý½ ˆüð1‰õàõ½qþqsaÖ[*×Á“/<¾8Ùvã u.¿žæÊ£€¸ÓB*¤êRgÀ!‡²å.Zö3aŠ›G„œ^ÕÄ»ÊåGOh 9�0ªÓ ;NP|J;|øìž{êY^¡R3ê†ck¿ŠÓkç À†¥X½çZ_AcúqJ³˜‘î±çeƒ»Ø*a§Î'±«o�. Ÿ&9%ÒpyÇ$ºB?ÿþf*þë<ÙØê]T:ã»Ä_æóE²ùM±=@