Adjust either of the boxes. Click once to start drawing, click again to save.
If your initial point is wrong, you can move the pointer up and right to move the inital point.
.jack_pub_style {
  background-color: black;
  opacity: 0.4;
  border: 4px solid yellow;
}
const [myCoords, setMyCoords] =
  useState({x:1050, y:688, x2:1732, y2:1563, w:682, h:875})
const [myCoordString, setMyCoordString] =
  useState('')
const saveMyCoords = (coords) => {
  setMyCoords(coords)
  setMyCoordString(JSON.stringify(myCoords))
}
<ImgBox
  id="jack_pub_big" {...myCoords} className="img-fluid"
  src="img/jack_pub.jpg"
  defaultSettings={{
    edit: true,
    saveBox: saveMyCoords,
    markClass: 'jack_pub_style'
  }}
/>
<ImgBox
  id="jack_pub_small" {...myCoords} className="img-fluid"
  edit={true} saveBox={saveMyCoords}
  markStyle={{ 'border': '2px solid blue' }}
  src="img/jack_pub.jpg"
/>
<input
  id="jack_pub_out" type="text" placeholder="Redraw the box around the barman in both pictures"
  readOnly={true} style={{ width: '100%' }}
  value={myCoordString}
/>