You should always scale images to the correct size before adding them to the form. Furthermore, you should make sure that the file size is as small as possible without sacrificing image quality.
Optimizing your images improves form performance by reducing both load and run time. Large image files do not necessarily increase image quality. Large images may actually look worse if they need to be scaled down to fit an explicitly sized button or label.
Before adding an image file to a form, you should open it in your image editing software and make the following modifications:
- Crop images so that they only show the relevant portions of the image.
- Scale the image to an appropriate size (height and width), so that it exactly fits the space you want to display it in.
- Optimize the image palette, so that only colors used in the image are included in the file’s color data.
- Reduce the image resolution as much as possible without visibly decreasing image quality.
No examples provided.
Exceptions to this practice
There are no exceptions to this practice.