-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Extending Recton Services #52
Comments
@Martin-1988 I don't think so. Can you elaborate on specifically what you're looking to achieve? |
I am trying to figure out, how we can use Retcon with the imageOptimize plugin when someone added images to a redactor field. The usage of the imageOptimize plugin looks something like this. twig
and as a result, we have this. html
Or would it be easier to achieve this, with the imagerX plugin? |
The biggest obstacle to use either ImageOptimize or Imager's pre-transform features with Retcon is the fact that Retcon won't actually use the original assets when generating transforms (it will actually parse any reference tags in the image nodes' If you need this level of control over how image transforms are generated, my recommendation would be to use separate fields or block types for the images (i.e. not have them inside the WYSIWYG content), if at all possible. Retcon's transform features are fairly bare-bones on purpose. |
I've got some changes planned for transforms in Retcon 3.0 which could be helpful for cases like this. |
Hi @mmikkel - do you have an ETA on v3? Bumping up against this on a site with loads of legacy entries using retcon w/ imager and lambda. |
@daniellelecomte Retcon 3.0.0-beta.1 has actually been tagged, but it’s a Craft 5 compatibility release and there are no changes. I might or might not still do a bigger Retcon refactor at some point (perhaps as a 4.0), but it’s not something I’m working on ATM. |
Appreciate the quick reply! Any suggestions on a work-around? |
No, not really. As I mentioned above, ImageOptimize and Imager pre-transforms aren’t compatible with Retcon’s transform filters (which have essentially stayed the same since Craft 2 and pre-dates both of those). I’m not seeing a way to reconcile these features without making some fundamental changes to Retcon. |
Is there an easy way to add a custom transform service method to your RetconService class?
The text was updated successfully, but these errors were encountered: