PHPackages                             topthink/think-image - 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. topthink/think-image

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

topthink/think-image
====================

The ThinkPHP5 Image Package

v1.0.8(1y ago)63434.9k↓49.6%36[8 issues](https://github.com/top-think/think-image/issues)[1 PRs](https://github.com/top-think/think-image/pulls)17Apache-2.0PHP

Since Jul 13Pushed 1y ago6 watchersCompare

[ Source](https://github.com/top-think/think-image)[ Packagist](https://packagist.org/packages/topthink/think-image)[ RSS](/packages/topthink-think-image/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (17)

The ThinkPHP5 Image Package
===========================

[](#the-thinkphp5-image-package)

[![Build Status](https://camo.githubusercontent.com/292a02e702d6f03ad55d54bbe4571f9d4de222143181c22236d47e382ddb5d28/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f702d7468696e6b2f7468696e6b2d696d6167652e737667)](https://travis-ci.org/top-think/think-image)[![Coverage Status](https://camo.githubusercontent.com/9b8fa7629bfbfcdcafc0a79949a2f98e7c0a80202ab6b7c0c565f4f316cdf138/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f746f702d7468696e6b2f7468696e6b2d696d6167652e737667)](https://codecov.io/github/top-think/think-image)[![Downloads](https://camo.githubusercontent.com/5066fdb2db8d4827b6f00da89d8b983f55b20d7659886377fe85f12c51da8e8f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f746f702d7468696e6b2f7468696e6b2d696d6167652f746f74616c2e737667)](https://github.com/top-think/think-image/releases)[![Releases](https://camo.githubusercontent.com/7f6a322794a1361c4be90972197d7f824def926a00861bc1721aa14efb7ed7e2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f746f702d7468696e6b2f7468696e6b2d696d6167652e737667)](https://github.com/top-think/think-image/releases/latest)[![Releases Downloads](https://camo.githubusercontent.com/dbf6abbadbeabedf976157e888063067ed07d8700a91b171a31c79143429a9be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f746f702d7468696e6b2f7468696e6b2d696d6167652f6c61746573742f746f74616c2e737667)](https://github.com/top-think/think-image/releases/latest)[![Packagist Status](https://camo.githubusercontent.com/1837837ba0cbd01f911dab09b4a259570f65fcf146652ce77dc6adc2404eb125/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f702d7468696e6b2f7468696e6b2d696d6167652e737667)](https://packagist.org/packages/topthink/think-image)[![Packagist Downloads](https://camo.githubusercontent.com/b3a99aeca9225d24653b6306944fceae2e46866a4e0ea1c6ae8cdec7f7c08d8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f702d7468696e6b2f7468696e6b2d696d6167652e737667)](https://packagist.org/packages/topthink/think-image)

安装
--

[](#安装)

> composer require topthink/think-image

使用
--

[](#使用)

```
$image = \think\Image::open('./image.jpg');
或者
$image = \think\Image::open(request()->file('image'));

$image->crop(...)
    ->thumb(...)
    ->water(...)
    ->text(....)
    ->save(..);

```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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.

###  Release Activity

Cadence

Every ~327 days

Recently: every ~735 days

Total

10

Last Release

640d ago

Major Versions

v1.0.7 → v2.0.0.x-dev2024-07-18

### Community

Maintainers

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

---

Top Contributors

[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (14 commits)")[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (12 commits)")[![lifankohome](https://avatars.githubusercontent.com/u/16812870?v=4)](https://github.com/lifankohome "lifankohome (2 commits)")[![big-dream](https://avatars.githubusercontent.com/u/9215157?v=4)](https://github.com/big-dream "big-dream (2 commits)")[![4352570](https://avatars.githubusercontent.com/u/51403503?v=4)](https://github.com/4352570 "4352570 (1 commits)")[![zjkal](https://avatars.githubusercontent.com/u/15082976?v=4)](https://github.com/zjkal "zjkal (1 commits)")[![hegzh](https://avatars.githubusercontent.com/u/1522208?v=4)](https://github.com/hegzh "hegzh (1 commits)")[![lilwil](https://avatars.githubusercontent.com/u/11472237?v=4)](https://github.com/lilwil "lilwil (1 commits)")[![SunJary](https://avatars.githubusercontent.com/u/44861528?v=4)](https://github.com/SunJary "SunJary (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/topthink-think-image/health.svg)

```
[![Health](https://phpackages.com/badges/topthink-think-image/health.svg)](https://phpackages.com/packages/topthink-think-image)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k22](/packages/bkwld-croppa)[marc1706/fast-image-size

fast-image-size is a PHP library that does almost everything PHP's getimagesize() does but without the large overhead of downloading the complete file.

959.4M20](/packages/marc1706-fast-image-size)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)

PHPackages © 2026

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