You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a number of products, each with a gallery of images. For SEO reasons I used the filenamePattern with the product slug.
Because the server has a hard time transforming these images at runtime, I'm looking into automatic transforms, so I'm defining named transforms first. But is it possible to define this customfilenamePattern somehow in the named transform? It uses the page/product slug so even if i'm using 'filenamePattern' => static function ($image) {} that would not help as I only have the image available? And not the entry?
Displayed errors, stack trace, relevant logs
PASTE THE ERROR MESSAGE / STACK TRACE HERE
Additional info
Imager version & edition: 4.1.13 PRO
Imager transformer:
Craft version: 4.4.14 PRO
PHP version: 8.1
Image driver & version:
The text was updated successfully, but these errors were encountered:
No, unfortunately it wouldn't be possible to use that technique with named transformed and auto generation. I've encountered some similar shortcomings before, and have been contemplating if there's a way to use the element when auto generating base on an element save config. But I didn't come up with a decent solution that wasn't just a big, dirty hack.
I'll leave this open for now and give it some more thought.
I'm submitting a...
Steps to reproduce
Description
I have a number of products, each with a gallery of images. For SEO reasons I used the
filenamePattern
with the product slug.Because the server has a hard time transforming these images at runtime, I'm looking into automatic transforms, so I'm defining named transforms first. But is it possible to define this custom
filenamePattern
somehow in the named transform? It uses the page/product slug so even if i'm using'filenamePattern' => static function ($image) {}
that would not help as I only have the image available? And not the entry?Displayed errors, stack trace, relevant logs
Additional info
4.1.13 PRO
4.4.14 PRO
The text was updated successfully, but these errors were encountered: