You
can use the Stroke command to automatically trace a colored outline
around a selection or the content of a layer.
Note: To add an
outline to the background, you must first convert it to a regular
layer. The background contains no transparent pixels, so the entire
layer is outlined.