PHPackages                             compressmyphotos/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. [Templating &amp; Views](/categories/templating)
4. /
5. compressmyphotos/image

ActiveLibrary[Templating &amp; Views](/categories/templating)

compressmyphotos/image
======================

A package for displaying photos from compressmy.photos in your Laravel app.

0.1.3(1y ago)02MITPHPPHP ^8.2

Since Jan 18Pushed 1y agoCompare

[ Source](https://github.com/Compress-My-Photos/image)[ Packagist](https://packagist.org/packages/compressmyphotos/image)[ RSS](/packages/compressmyphotos-image/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

CompressMyPhotos Image
======================

[](#compressmyphotos-image)

CompressMyPhotos Image is a Laravel package that provides an easy-to-use Blade component for rendering optimized images using the CompressMyPhotos API.

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

[](#installation)

You can install the package via composer:

```
composer require compressmyphotos/image
```

Configuration
-------------

[](#configuration)

After installation, publish the configuration file:

```
php artisan vendor:publish --provider="CompressMyPhotos\Image\CompressMyPhotosServiceProvider" --tag="config"
```

This will create a `compress-my-photos.php` configuration file in your `config` directory. Update it with your CompressMyPhotos API credentials:

```
return [
    'api_url' => env('COMPRESS_MY_PHOTOS_API_URL', 'https://api.compressmyphotos.com'),
    'api_key' => env('COMPRESS_MY_PHOTOS_API_KEY'),
    'default_quality' => env('COMPRESS_MY_PHOTOS_DEFAULT_QUALITY', 75),
    'default_format' => env('COMPRESS_MY_PHOTOS_DEFAULT_FORMAT', 'webp'),
];
```

Make sure to add your API key to your **.env** file:

Usage
-----

[](#usage)

You can use the `` component in your Blade templates:

```

```

Available Options
-----------------

[](#available-options)

- id (required): The ID of the image in the CompressMyPhotos system.
- quality (optional, default: 75): The quality of the image (0-100).
- blur (optional, default: 0): The blur level of the image.
- sepia (optional, default: false): Apply sepia filter.
- grayscale (optional, default: false): Convert to grayscale.
- format (optional, default: 'webp'): The output format of the image.
- lazy (optional, default: false): Enable lazy loading.
- oilpaint (optional, default: false): Apply oil paint effect.
- flip (optional, default: null): Flip the image ('horizontal', 'vertical', or null).
- preload (optional, default: false): Preload the image.

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see CONTRIBUTING for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see License File for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance41

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

485d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/671fe953fff44fbd47a48b5e2fb105ed7893bf8601f975a2812a99cd9299aed0?d=identicon)[Matildeene](/maintainers/Matildeene)

---

Top Contributors

[![Matildevoldsen](https://avatars.githubusercontent.com/u/30376875?v=4)](https://github.com/Matildevoldsen "Matildevoldsen (17 commits)")

---

Tags

bladeimageslaravelphpimagelibrarycompressimage package

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)

PHPackages © 2026

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