The New Guides from Selection command adds
four guide lines, one for each of the upper, lower, left and right
edges of the current selection. If there is no selection in the
current image, no guides are drawn.
6.24.1.
Activating the Command
You can access this command from the image menubar through
Image → Guides → New Guides from Selection.
Published under the terms of the GNU General Public License