In GIMP's Measure tool, draw from the intended vertex along the first edge. Shift-drag from the vertex handle to add a second measuring arm along the other edge. Put the endpoints well away from the vertex so a one-pixel placement error matters less.

Check the setup on a known right angle in the same plane. If it reads substantially off, correct the capture geometry before using the measured value.

Straightening a Crooked Photo · Measure