Building a Purple Experience
Components

Image Scaling

2min

Purple Experience



The maximum width for images in posts is set to 1200px. This ensures enough quality to allow images to be displayed larger than a typical content column in the publishing sector, while keeping image sizes within reasonable limits.

You can modify the sizes of images in the content according to your needs, with adding and setting the max-image-width attribute on your content.body setting. We do not recommend to render Images at larger sizes, the setting rather allows you to set the value to an even more efficient value, which will result in faster loading and better performance.

You need to set this value for any content.body setting you configure in your views.json.

It might be tricky to find the content.body setting in your views.json as it grows over time.

content.body setting in views.json
content.body setting in views.json