Skip to content

How to get the generate command to work with directive parameters? #130

Answered by riasvdv
stuartcusackie asked this question in Q&A
Discussion options

You must be logged in to vote

I'm pretty sure this means that the generate command will not create the images needed for this particular view.

Correct.

So how would I go about including these ratios in the generation jobs?

There is no way to do this.

As explained in this section: https://github.com/spatie/statamic-responsive-images#using-responsive-images

We generally recommend setting statamic.assets.image_manipulation.cache to false so only images actually requested by a browser are generated. The first time the conversion is loaded will be slow, but Glide still has an internal cache that it will serve from the next time. This saves a lot on server resources and storage requirements.

There is rarely a good rea…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@stuartcusackie
Comment options

@riasvdv
Comment options

Answer selected by stuartcusackie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants