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 size parameter to imageTag helper in PDFs #2714

Open
bmoree opened this issue Apr 26, 2023 · 0 comments
Open

Add size parameter to imageTag helper in PDFs #2714

bmoree opened this issue Apr 26, 2023 · 0 comments

Comments

@bmoree
Copy link

bmoree commented Apr 26, 2023

Is your feature request related to a problem? Please describe.
PDFs with a lot of images have a very large filesize because the original image is used whatever the height/width of the image. If we could instruct the system to use one of the available thumbnail sizes the filesize can be reduced drastically.

Describe the solution you'd like
Using the helper {{imageTag imageFieldNameId size=small|medium|large }} will output a version of the image based on the selected size.

Describe alternatives you've considered
Outputing the url with the ?size param inside the src of an img tag, but it keeps escaping the "&"

Additional context
Add any other context or screenshots about the feature request here.

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

No branches or pull requests

1 participant