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
Use case: I'm using NextJS with CraftCMS to generate static pages of posts on build. The entire list of posts and their images can be requested via GraphQL. Images don't need to be generated until requested and so the build doesn't need to slow down because of it (nor put that much work on the Craft server.
It'd be ideal if ImagerX could build a URL placeholder which is returned in the GraphQL response. Then, when the URL is accessed, the image is finally generated and returned to the user.
I imagine this would have to be an image in Craft, and if the actual image is hosted externally, then it needs to do a redirect? I'm not sure how that'd be handled...
Happy to provide more feedback and if this already exists and I missed it, really sorry, I went through the entire documentation. :)
Thanks!
The text was updated successfully, but these errors were encountered:
If I understand correctly, this is similar to the kind of lazy transforming that I discuss in this thread way back when: aelvan/Imager-Craft#282 (comment)
In short, I won't be implementing something like this because there isn't a viable solution to this that doesn't come with some serious trade-offs.
In this case, I think several of those options are off the table anyway, as I guess NextJS would request the image during the build process in much the same way as a normal request to the Craft server? So there would be no way of knowing that the request came from the build process or not.
I would recommend instead either auto generating the transforms when content is edited, or offloading transforms to a service that does the transform in the cloud on demand (for instance Imgix or AWS Serverless Image Handler).
I'm submitting a...
Description
Use case: I'm using NextJS with CraftCMS to generate static pages of posts on build. The entire list of posts and their images can be requested via GraphQL. Images don't need to be generated until requested and so the build doesn't need to slow down because of it (nor put that much work on the Craft server.
It'd be ideal if ImagerX could build a URL placeholder which is returned in the GraphQL response. Then, when the URL is accessed, the image is finally generated and returned to the user.
I imagine this would have to be an image in Craft, and if the actual image is hosted externally, then it needs to do a redirect? I'm not sure how that'd be handled...
Happy to provide more feedback and if this already exists and I missed it, really sorry, I went through the entire documentation. :)
Thanks!
The text was updated successfully, but these errors were encountered: