score:1

Use boundingClientRect

var clientRects = svg.select("image").node().getBoundingClientRect();

var coordinates = [
  [clientRects.left, clientRects.top],
  [clientRects.top, clientRects.right],
  [clientRects.bottom, clientRects.left],
  [clientRects.bottom, clientRects.right]
];

Updated fiddle


Related Query

More Query from same tag