Score:0

How to get low resolution image urls from json:api?

sz flag

The json:api put provides a link to file--file node types, but the url is to the original image file.

How can I get a lower resolution image file via json:api to avoid users from downloading a MB+ image file?

Score:1
cn flag

Core does not support this (yet... hopefully).

Assuming you have already set up image styles, you can use the Consumer Image Styles module, which is the approach taken by Contenta CMS.

For reference, there's also a blog post on the background to the development of Consumer Image Styles.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.