PHPackages                             superbig/craft-imagerpretransform - 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. superbig/craft-imagerpretransform

AbandonedArchivedCraft-plugin

superbig/craft-imagerpretransform
=================================

Pretransform any Assets on save, with Imager

2.0.3(6y ago)2211.6k↓100%1[1 PRs](https://github.com/superbigco/craft-imagerpretransform/pulls)MITPHP

Since Nov 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/superbigco/craft-imagerpretransform)[ Packagist](https://packagist.org/packages/superbig/craft-imagerpretransform)[ RSS](/packages/superbig-craft-imagerpretransform/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

Imager Pretransform plugin for Craft CMS 3.x
============================================

[](#imager-pretransform-plugin-for-craft-cms-3x)

Pretransform any Assets on save, with Imager

[![Screenshot](resources/icon.png)](resources/icon.png)

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 3.0.0-beta.23 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require superbig/craft-imagerpretransform

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Imager Pretransform.

Imager Pretransform Overview
----------------------------

[](#imager-pretransform-overview)

If you have suffered from memory or execution time issues when creating many transforms on demand, you should look into pre-generating transforms per image.

This plugin, combined with a long cache duration time, will make sure transforms will only be generated once, and one at a time.

When users upload an Asset, a task will be created, which in turn will use Imager to pre-generate the transform(s).

Configuring Imager Pretransform
-------------------------------

[](#configuring-imager-pretransform)

Copy the config template from `vendor/superbig/craft-imagerpretransform/src/config.php` to `craft/config` as `imager-pretransform.php` and make your changes there to override default settings.

You can either have a set of transforms per Asset source handle:

```
