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.
- Navigate to .
- Click + Add image style.
- Enter User picture in the
Image style name
field. Click Create new style
User picture
. You can edit the User
picture
as required. For more information, see Edit the image style User picture.Edit the image style User picture
- Navigate to .
- Click Edit on the
User picture
style name. - Under
Effect
, selectScale and crop
from the list and click Add. - Enter 300 in the
Width
andHeight
boxes. Leave theAnchor
as the middle setting. - Click Add effect.
- Click Save to save the changes.
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, go to People, click a user, and see
their picture on their profile page. Right-click the image, then click View image
info
, you can see that the dimensions are scaled.