PHPackages                             wishanddell/craft-glide - 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. wishanddell/craft-glide

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

wishanddell/craft-glide
=======================

Adds on-demand image transform support to Craft using Glide

3.0.0(1y ago)018[1 issues](https://github.com/Wish-and-Dell/Craft-Glide/issues)PHP

Since May 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Wish-and-Dell/Craft-Glide)[ Packagist](https://packagist.org/packages/wishanddell/craft-glide)[ RSS](/packages/wishanddell-craft-glide/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Glide Image Transforms
======================

[](#glide-image-transforms)

On-demand image manipulation for Craft CMS using Glide 3.0 from The PHP League. This plugin is an alternative to Crafts native image transforms and allows you to specify parameters to adjust the image on the fly in the url.

Supported file systems:

- Local
- [AWS S3](https://plugins.craftcms.com/aws-s3)

Example Usage
-------------

[](#example-usage)

```

```

If your asset uploaded to craft is `mysite.com/assets/animage.jpg`then this can now be rendered with Glide at `mysite.com/glide/animage.jpg?w=100`

For more information about what parameters are supported please see the [Glide website](https://glide.thephpleague.com/3.0/api/quick-reference/).

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

[](#installation)

```
composer require wishanddell/craft-glide

```

Assets can now be rendered through Glide using:

```
https://your-domain.com/glide/{filename}

```

AWS S3
------

[](#aws-s3)

When configuring your AWS filesystem, tick the box for public URLs and set the value to `https://your-domain.com/glide/`The plugin will request the image from S3, apply the transforms and save the cached version back to your S3 bucket prefixed with `glide`

CDN / Advanced Usage
--------------------

[](#cdn--advanced-usage)

It is possible to create a CDN distribution using your domain as the origin, just make sure Query String Forwarding is enabled.

Security
--------

[](#security)

By signing each request with a private key, no alterations can be made to the URL parameters.

Create the file `config/glide2.php` with the following:

```
