Tutorial: Using image optimization
You can use image optimization on your Developer Portal site to enhance the use of images.
Optimized images do not overload your website and significantly increase its performance compared to using the original images. Your customer satisfaction and brand reputation improve with fast-loading and trimmed visual assets. Automatic optimization can save time and effort on editing and content moderation.
Before you begin
You must have a Developer Portal enabled, and you must have administrator access to complete this tutorial. The tutorial Creating the Portal explains how to enable the portal if you have not already done so.About this tutorial
In this task, you create an image style that is called User picture, and
give it a scale and crop effect. Then, use the User picture as the
Picture
field in the user account.
Create the image style User picture
- Log in to your Developer Portal as an administrator.
- If the administrator dashboard isn’t displayed, click Manage to display it.
- Navigate to .
- Click + Add image style.
- Enter User picture in the
Image style name
block. Click Create new style
User picture
.Edit the image style User picture
- If the administrator dashboard isn’t displayed, click Manage to display it.
- Navigate to .
- Click Edit on the
User picture
style name. - Select
Scale and crop
fromSelect a new effect
, then click Add. - Enter 300 in the
Width
andHeight
boxes. Leave theAnchor
as the middle setting. Click Add effect. - Click Save.
User picture
. Assign User picture
to the picture
option in
Account settings
You set the User picture
image style for all accounts.
What you did in this tutorial
You changed your account settings so that if the user displays a picture it is within the limits
of the image style User picture
.
To check the picture used by a user, navigate to
View image
info
, you can see that the dimensions are scaled.