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 option to pass parameters in image URLs and/or allow for filtering image processes #6

Open
E-VANCE opened this issue Jul 19, 2022 · 0 comments

Comments

@E-VANCE
Copy link

E-VANCE commented Jul 19, 2022

Hi there,

I jsut tried to pass a custom parameter to a certain set of images but these are being ignored – we cannot use global params for this since it only applies to certain templates and we need to manage the images there differently...

This is how we have set up the image generation:

wp_get_attachment_image($thumbnail_id, 'medium', false, array(
  'data-src' => wp_get_attachment_image_url($card_thumbnail_id, 'full')) . '?ar=1:1',
))

The appended ar=1:1-values are being disregarded and Gumlet produces an image source like

/app/uploads/some-image.png?compress=true&quality=80&w=200&dpr=1.0

Is there any way to specify parameters to be used here?

I searched the plugin files for occurrences of apply_filters() but there are none to be found that could be utilized here.

Looking forward to your input and thanks for the effort!

Regards,
Henning

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