PHPackages                             coyotito/image-resizer - 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. coyotito/image-resizer

ActiveNativephp-plugin[Image &amp; Media](/categories/media)

coyotito/image-resizer
======================

Image resize plugin for NativePHP Mobile (iOS ImageIO + Android Bitmap).

v0.1.0(2w ago)02↓100%MITPHPPHP ^8.2

Since May 26Pushed 2w agoCompare

[ Source](https://github.com/coyotito-mx/image-resizer)[ Packagist](https://packagist.org/packages/coyotito/image-resizer)[ RSS](/packages/coyotito-image-resizer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Image Resizer
=============

[](#image-resizer)

NativePHP Mobile plugin that downscales images using native APIs — `ImageIO` on iOS and `BitmapFactory` on Android.

Install
-------

[](#install)

```
composer require coyotito/image-resizer
```

Register the plugin it the `NativeServiceProvider`:

```
public function plugins(): array
{
    return [
        \Coyotito\ImageResizer\ImageResizerServiceProvider::class,
    ];
}
```

Usage
-----

[](#usage)

```
use Coyotito\ImageResizer\Facades\ImageResizer;

$ok = ImageResizer::resize(
    sourcePath: '/abs/path/to/source.jpg',
    targetPath: '/abs/path/to/target.jpg',
    maxSide: 1024,   // longest side cap; preserves aspect ratio, no upscale
    quality: 80,     // JPEG quality, 0-100
);
```

Returns `true` on success, `false` otherwise. Target is always written as JPEG. EXIF orientation is respected on both platforms.

Platform notes
--------------

[](#platform-notes)

FeatureiOSAndroidDecoder`CGImageSource` (ImageIO)`BitmapFactory` with `inSampleSize`EXIF orientationAuto via thumbnail transformExplicit via `ExifInterface`Output formatJPEGJPEGMemory efficiencyThumbnail API streams from disk`inSampleSize` downsamples on read

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance97

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

15d ago

### Community

Maintainers

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

---

Top Contributors

[![asciito](https://avatars.githubusercontent.com/u/63119899?v=4)](https://github.com/asciito "asciito (1 commits)")

---

Tags

imageresizemobileandroidiosnativephp

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/coyotito-image-resizer/health.svg)

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

###  Alternatives

[intervention/image

PHP Image Processing

14.8k203.8M2.5k](/packages/intervention-image)[gumlet/php-image-resize

PHP class to re-size and scale images

1.2k5.8M60](/packages/gumlet-php-image-resize)[sybio/image-workshop

Powerful PHP class using GD library to work easily with images including layer notion (like Photoshop or GIMP)

879936.5k12](/packages/sybio-image-workshop)[masterexploder/phpthumb

A library for manipulating images in PHP.

967763.4k17](/packages/masterexploder-phpthumb)[intervention/image-laravel

Laravel Integration of Intervention Image

1558.1M158](/packages/intervention-image-laravel)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

506511.0k27](/packages/bkwld-croppa)

PHPackages © 2026

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