Cms: Add asset transform events

Created on 31 Jan 2017  路  5Comments  路  Source: craftcms/cms

Created by: brad ([email protected]) on 2015/03/06 19:07:45 +0000
Votes at time of UserVoice import: 13


It be great if onBeforeAssetTransform and onAssetTransform events were added to Craft allowing plugins to hook onto the asset transformation pipeline.

Most helpful comment

> Posted by Andr茅 Elvan ([email protected]) on 2015/03/10 17:52:06 +0000

This would be awesome if it would let a plugin replace the whole transform process, not only do additional work on the source, or on the transformed image.

All 5 comments

> Posted by Timothy Kelty ([email protected]) on 2015/04/02 12:33:05 +0000

Just ran into a place where I needed this!
I wanted to convert to a specific color profile with Imagick.

For the time being, I'm using assets.onBeforeUploadAsset, but ideally I would only do it for transforms and not touch the original files.

> Posted by Andr茅 Elvan ([email protected]) on 2015/03/10 17:52:06 +0000

This would be awesome if it would let a plugin replace the whole transform process, not only do additional work on the source, or on the transformed image.

This would be great, whether or not https://github.com/craftcms/cms/issues/845 is implemented

Honestly, I think this was already added, but I suppose not. Will look into it.

馃憦

Was this page helpful?
0 / 5 - 0 ratings

Related issues

angrybrad picture angrybrad  路  3Comments

leigeber picture leigeber  路  3Comments

bitboxfw picture bitboxfw  路  3Comments

brandonkelly picture brandonkelly  路  3Comments

rynpsc picture rynpsc  路  3Comments