PHPackages                             wangta69/php-thumbnail - 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. wangta69/php-thumbnail

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

wangta69/php-thumbnail
======================

thumbnail

1.1.1(1y ago)11632MITPHPPHP &gt;=5.3.0

Since Feb 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wangta69/php-thumbnail)[ Packagist](https://packagist.org/packages/wangta69/php-thumbnail)[ RSS](/packages/wangta69-php-thumbnail/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (2)

php-thumbnail
=============

[](#php-thumbnail)

Installation
------------

[](#installation)

```
composer require wangta69/php-thumbnail

composer require "wangta69/php-thumbnail @dev"

```

How to Use
----------

[](#how-to-use)

#### save remote image to local

[](#save-remote-image-to-local)

```
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';

$image = new GetHttpImage();
$image->read($img_url)->save($save_path);

```

#### read(source image url)

[](#readsource-image-url)

=== read image from url;

#### set\_size(width, height)

[](#set_sizewidth-height)

=== create blank image

#### copyimage()

[](#copyimage)

=== copy source image to destination image with croping from center

#### copyWithRatio()

[](#copywithratio)

=== copy source image to destination image

#### save(destinaition image url)

[](#savedestinaition-image-url)

=== save or create image

#### format(image format)

[](#formatimage-format)

=== change image format

#### name('image name')

[](#nameimage-name)

=== change image name, image name shoud be without extention, extention will be created according to image format

#### save remote image to local (image resizing With croping sourceimage from center )

[](#save-remote-image-to-local-image-resizing-with-croping-sourceimage-from-center-)

```
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';

$image = new GetHttpImage();
$image->read($img_url)->->set_size(100, 100)->copyimage()->save($save_path);

```

#### save remote image to local (image resizing With maintaining the source ratio )

[](#save-remote-image-to-local-image-resizing-with-maintaining-the-source-ratio--)

```
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';

$image = new GetHttpImage();
$image->read($img_url)->->set_size(100, 100)->copyWithRatio()->save($save_path);

```

#### save remote image to local (image resizing With the ratio maintained and change file format )

[](#save-remote-image-to-local-image-resizing-with-the-ratio-maintained-and-change-file-format-)

```
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';

$image = new GetHttpImage();
$image->read($img_url)->set_size(100, 100)->copyWithRatio()->format('png')->save($save_path);

```

#### save remote image to local (change file name )

[](#save-remote-image-to-local-change-file-name-)

```
use Pondol\Image\GetHttpImage;
$img_url = 'http://www.shop-wiz.com/myphoto.jpg';
$save_path = '/home/photos';

$image = new GetHttpImage();

$image->read($img_url)->set_size(100, 100)->copyWithRatio()->name('myphoto')->save($save_path);

or

$image->read($img_url)->set_size(100, 100)->copyWithRatio()->name('myphoto')->format('png')->save($save_path);

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~612 days

Total

5

Last Release

548d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d710777d1acc261175e5f7d5fd6fe55f09d44c496a1fead48c155835fa0fdb3a?d=identicon)[wangta69](/maintainers/wangta69)

---

Top Contributors

[![wangta69](https://avatars.githubusercontent.com/u/427687?v=4)](https://github.com/wangta69 "wangta69 (16 commits)")

---

Tags

imageliblaravelphpthumbnaillaravelthumbnailpondol

### Embed Badge

![Health badge](/badges/wangta69-php-thumbnail/health.svg)

```
[![Health](https://phpackages.com/badges/wangta69-php-thumbnail/health.svg)](https://phpackages.com/packages/wangta69-php-thumbnail)
```

###  Alternatives

[intervention/image-laravel

Laravel Integration of Intervention Image

1496.5M102](/packages/intervention-image-laravel)[lakshmaji/thumbnail

Thumbnails for videos

108122.2k](/packages/lakshmaji-thumbnail)[rolandstarke/laravel-thumbnail

Laravel Thumbnail generator

52140.6k](/packages/rolandstarke-laravel-thumbnail)[urlbox/screenshots

Use urlbox to easily generate website thumbnail screenshots from a URL

14250.4k](/packages/urlbox-screenshots)

PHPackages © 2026

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