There isn't much documentation out there about how to apply image transforms to images in a Redactor field.

I found this: Apply transform to image uploaded into Redactor?

And it's useful, since I can even select a default transform:

enter image description here

... but I would like to go a bit further, and not only apply transforms to new content, but also to all the entries witin a specific section that uses a Redactor field.

Is that possible?

2 Answers 2


You'll need the Retcon plugin to do this. https://plugins.craftcms.com/retcon

  • Hi James, thanks. I've looked into the plugin but with this one I'd have to explicit it in my twig templates. I want the transforms to be done on the server before it even processes the twig template. Aug 17, 2022 at 11:03

And the answer is: use the Image Optimize plugin.

php craft image-optimize/optimize/create

More console commands in the official docs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.