# Captures in jifto's report look

`jifto_capture` renders the model the way jifto's PDF report does: the **jifto Diagram** display mode
on a white page, buildings as white massing with fine dark outlines, the analysis on display in its
colours. It uses its own view; your views, selection and hover label stay as they are.

```json
jifto_capture {"view": "top", "frame": ["<ground id>"], "width": 1200, "height": 1200, "path": "<folder>/plan.png"}
jifto_capture {"view": "perspective", "frame": ["<ids>"], "width": 1600, "height": 1000}
jifto_capture {"view": "perspective", "camera": {"location": [-120, -140, 90], "target": [0, 0, 0], "lens_mm": 50}}
```

- `view: top` is a plan, framed like the report's plans on the objects you name (default: everything
  visible), with a 4 % margin (`margin`). `perspective` is a 3/4 view from the south-west.
- The image is exactly `width` x `height`; the frame fills it.
- What is drawn is what is visible: hide other options' layers first (`jifto_geometry` action=layers).
- The reply's `legend` is the analysis legend as data (title, stops with colours and labels,
  statistics). Draw it in your report with the kit's `jiftoLegend`; never show a capture without its
  legend. `overlay: true` draws jifto's own legend and statistics onto the image instead.
- A terrain coloured by cut and fill (`jifto_terrain` surface=cut_fill) is captured like an analysis;
  its legend is in the `jifto_terrain` reply.
- `preview: true` returns the image to you as well, to check it.
- `box: {min, max}` frames a region instead of objects, for example a site a few metres inside its
  edge.
- A minimized or hidden Rhino still captures in the Diagram look: jifto shows its window for one
  frame at 1/255 opacity, without focus, then puts it back. If Rhino cannot draw at all (a modal
  dialog), the capture fails with a fix instead of returning a wrong image.
