PHPackages                             lit/media - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. lit/media

ActiveLibrary[Image &amp; Media](/categories/media)

lit/media
=========

媒体处理

17PHP

Since Dec 8Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ghostong/LitMedia)[ Packagist](https://packagist.org/packages/lit/media)[ RSS](/packages/lit-media/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

媒体处理相关
======

[](#媒体处理相关)

媒体处理

### 环境依赖

[](#环境依赖)

使用此功能处理图片需要安装 php-imagick 扩展

```
apt install php-imagick -y
```

使用此功能处理视频需要安装 ffmpeg, 视频处理需要更大的内存运行程序.

```
apt install ffmpeg -y
```

### Demo

[](#demo)

```
https://github.com/ghostong/help/blob/master/LitMedia/demo.php

```

### blurOut 不足比例的视频/图片虚化

[](#blurout-不足比例的视频图片虚化)

```
//处理为 1:1 的虚化图片
(new Lit\Media\BlurOut("in.jpg"))->exec(1,1,"./out.jpg");
```

[![图片虚化效果](https://raw.githubusercontent.com/ghostong/help/master/LitMedia/image/blurOutImage.jpg)](https://raw.githubusercontent.com/ghostong/help/master/LitMedia/image/blurOutImage.jpg)

```
//处理为 4:5 的虚化视频
(new Lit\Media\BlurOut("in.mp4"))->exec(4,5,"./out.mp4");
```

[![视频虚化效果](https://raw.githubusercontent.com/ghostong/help/master/LitMedia/image/blurOutVideo.jpg)](https://raw.githubusercontent.com/ghostong/help/master/LitMedia/image/blurOutVideo.jpg)

### 常见问题

[](#常见问题)

##### The process has been signaled with signal "9"

[](#the-process-has-been-signaled-with-signal-9)

```
可能是主机内存不足, 进程被杀死.

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31069215?v=4)[litong](/maintainers/litong)[@litong](https://github.com/litong)

---

Top Contributors

[![ghostong](https://avatars.githubusercontent.com/u/5644948?v=4)](https://github.com/ghostong "ghostong (10 commits)")

### Embed Badge

![Health badge](/badges/lit-media/health.svg)

```
[![Health](https://phpackages.com/badges/lit-media/health.svg)](https://phpackages.com/packages/lit-media)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
