PHPackages                             slince/magic-hand - 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. slince/magic-hand

ActiveProject

slince/magic-hand
=================

Slince Magic Handle

17PHP

Since Jul 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/slince-archived/magic-hand)[ Packagist](https://packagist.org/packages/slince/magic-hand)[ RSS](/packages/slince-magic-hand/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

图形魔术手
=====

[](#图形魔术手)

基于php实现的图形处理工具

[![Build Status](https://camo.githubusercontent.com/48d4eb6820f4b75d8f29df4fcb936598b4f9c716b16b2f8dda70d33e33e7a03a/68747470733a2f2f7472617669732d63692e6f72672f736c696e63652f6d616769632d68616e642e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/slince/magic-hand)[![Latest Stable Version](https://camo.githubusercontent.com/85bee85de7fe15940d0170482f6d9ceeaef8c79e6681c88b23a028f208ae9419/68747470733a2f2f706f7365722e707567782e6f72672f736c696e63652f6d616769632d68616e642f762f737461626c65)](https://packagist.org/packages/slince/magic-hand)[![Total Downloads](https://camo.githubusercontent.com/860c11c4b23a409edd581c53245532bf580c4c7bf477d394e42cdb30c5fa6916/68747470733a2f2f706f7365722e707567782e6f72672f736c696e63652f6d616769632d68616e642f646f776e6c6f616473)](https://packagist.org/packages/slince/magic-hand)[![Latest Unstable Version](https://camo.githubusercontent.com/32a60005a63957a9a47f7593bfc56049569c8250ab084bf31e50aa4f39bedfdc/68747470733a2f2f706f7365722e707567782e6f72672f736c696e63652f6d616769632d68616e642f762f756e737461626c65)](https://packagist.org/packages/slince/magic-hand)[![License](https://camo.githubusercontent.com/f2037a73c4b9def9a86da7e1531cb670b47dbd0caa04a139401a6a12b72aa58f/68747470733a2f2f706f7365722e707567782e6f72672f736c696e63652f6d616769632d68616e642f6c6963656e7365)](https://packagist.org/packages/slince/magic-hand)

安装
==

[](#安装)

```
composer global require slince/magic-hand *@dev

```

Basic Usage
===========

[](#basic-usage)

魔术手是基于命令行使用的，目前支持的命令有

- thumbnail 图形缩略

支持的参数：

\--src \[-s\] 图片源文件夹路径，默认是工作目录下的src

\--dst \[-d\] 保存新生成图片的路径，默认是工作目录

\--mode \[-m\] 缩略图模式\[inset, outbound\], inset模式为保证缩略图像内容的完整不会严格按照给定尺寸裁剪，outbound会先进行缩放，再按照尺寸裁剪， 所以可以保证尺寸的准确，但图像内容可能会有所损失；默认是inset模式

注：参数都是可选的

调用方式

```
magichand thumbnail -s 图片路径 -d 保存路径 -m 缩略模式

```

如果需要帮助，可执行下面命令查看

```
magichand thumbnail --help

```

###  Health Score

20

—

LowBetter than 17% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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://www.gravatar.com/avatar/bd286cb3afc4855b71164f536b980931c1944632ad8586cfe0f87bc97afdf8b6?d=identicon)[slince](/maintainers/slince)

---

Top Contributors

[![slince](https://avatars.githubusercontent.com/u/3785826?v=4)](https://github.com/slince "slince (11 commits)")

### Embed Badge

![Health badge](/badges/slince-magic-hand/health.svg)

```
[![Health](https://phpackages.com/badges/slince-magic-hand/health.svg)](https://phpackages.com/packages/slince-magic-hand)
```

PHPackages © 2026

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