PHPackages                             jakobid/cdn-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. jakobid/cdn-image

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

jakobid/cdn-image
=================

Using cdn for images on the website

v1.0.2(3y ago)0448↓100%MITPHPPHP ^7.4|^8.0|^8.1

Since Nov 3Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (2)Used By (0)

Laravel CDN image blade component
=================================

[](#laravel-cdn-image-blade-component)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3c02ee17216f30c0c52d0c11ab40e33697816bfdabf89bad278882e901168bf2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f62616e676e6f6b69612f63646e2d696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bangnokia/cdn-image)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9bb989644066ebec694c6bf1d1197ccf0fcaf3955f1042d1c0347c1648ad4bf6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f62616e676e6f6b69612f63646e2d696d6167652f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/bangnokia/cdn-image/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/eccc33f049c8cc5ab825f3a9e551dad5e0301da3e8e5f4610bbf0bb2a62d30a8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f62616e676e6f6b69612f63646e2d696d6167652f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/bangnokia/cdn-image/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/21dec58a60b9fe44f415a36071be3125b3deb57ea23f2c34cdf33238e67b5a7f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f62616e676e6f6b69612f63646e2d696d6167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bangnokia/cdn-image)

If your website is running and has lots of images which make it slow, you should start to use a CDN for better speed beside with some convenient operations to manipulate image like resize, filter, convert to webp, etc...

By default, this package supports [statically](https://statically.io/) (a free CDN service out of the box) using via `/img` endpoint.

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

[](#installation)

You can install the package via composer:

```
composer require bangnokia/cdn-image
```

You can publish the config file with:

```
php artisan vendor:publish --provider="BangNokia\CdnImage\CdnImageServiceProvider" --tag="cdn-image-config"
```

Sample config file

```
