Merging all visible layers into the background layer to reduce file size.
The image on the left shows the Layers palette and file size before flattening. The unflattened file size is 1012K, and the file has three layers. The image on the right shows the Layers palette after flattening. The flattened file size is 379K and has only one layer.