3

I have several image styles defined but only thumbnail and medium styles(images) can be derived from the original image.

I know those two styles are set in the "manage field" of image and my usage is not going to switch thumbnail nor medium to other styles. My use-case is to generate all styles when/after users upload.

Please help, Thanks!

1 Answer 1

3

I believe that the Image Style Warmer module is what you want.

The Image Style Warmer module provides options to create image styles during upload or via queue worker. So configured image derivates already exists when they are requested.

  • Pre-generate configured image styles on image upload or crop change.
  • Pre-generate configured image styles via queue worker.
5
  • Thank you for answering. This is an old system of the company and it doesn't have this module but somehow the production will generate all styles after the user clicks the save button. We do have the flysystem installed and I believe my local is in the same branch as our production.
    – Bing
    Dec 7, 2021 at 2:44
  • I don't understand what you're asking.
    – Jaypan
    Dec 7, 2021 at 2:46
  • Is there any way to achieve the functionality without installing the "warmer" module?
    – Bing
    Dec 7, 2021 at 3:20
  • You an look at how that module does it, and incorporate the methodology into your module.
    – Jaypan
    Dec 7, 2021 at 3:23
  • Thanks! Good to know.
    – Bing
    Dec 7, 2021 at 4:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.