Skip to content
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

Add possibility to generate absolute url for ImageExtension #47

Open
Manours opened this issue Oct 20, 2022 · 1 comment
Open

Add possibility to generate absolute url for ImageExtension #47

Manours opened this issue Oct 20, 2022 · 1 comment
Labels

Comments

@Manours
Copy link
Contributor

Manours commented Oct 20, 2022

Is there a way to generate img tags with absolute urls, especially for emails ¿

@alexander-schranz
Copy link
Member

alexander-schranz commented Oct 20, 2022

Currently there is no way to configure absolute urls for the image extension, the extension are currently. As Emails are very special and do not support a lot of image features even not support picture tag, I currently recommend not using the get_image inside email templates and go there and use simple:

<img src="{{ absolute_url(image.thumbnails['200x200']) }}" alt="{{ image.title }} />

inside email templates.

There is a similar issue here: #18 to support asset configuration for images but that will control all get_image outputs to provide over a specific domain mostly subdomain. Today this is not longer recommended at why it was not implemented yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants