Skip to content

Crop, redact, and annotate documentation images

A raw screenshot is rarely publishable. It shows the whole browser window when the reader needs one panel. It carries a real customer’s name and email in the corner, and nothing in it points at the control the surrounding paragraph describes.

Docs Agent makes those three edits for you. Ask it to crop an image to what the page is about, cover information that must not reach public documentation, or mark up the part of the interface your prose refers to. This guide covers each edit on its own, then how to combine them in a single pass.

You need:

  • An EkLine account with Docs Agent enabled.
  • A repository connected to EkLine that holds both your documentation pages and their image files.
  • At least one image the agent can reach as a file. That means an image already committed to your connected repository, one the agent captured itself from a sandbox, or a frame it extracted from a video.

The agent edits PNG and JPEG files. It leaves vector images such as SVG untouched.

An uncropped capture makes the reader hunt. Cropping to the element the image depicts is the single edit that improves most screenshots.

  1. Open the Docs Agent editor and start a new session.

  2. Name the image and what it should show:

    Crop the screenshot in our billing guide so it shows only
    the Payment method panel, not the whole page.
  3. Open the edited image from the file list to review it. It renders in the editor pane, and you can click it to open it full size.

  4. Click Raise PR to open a pull request with the cropped image. The button prefills a chat message — send it, and the agent opens the pull request.

The agent matches the padding, width, and light or dark theme of the images already beside it on the page, so a recropped image doesn’t stand out from its neighbors. It cuts what doesn’t illustrate the point — unrelated sidebars, panels, and toolbars — while keeping the page header or navigation item a reader needs to orient.

Screenshots taken against a real account carry real data: names, email addresses, phone numbers, billing details, API tokens, and faces. Published to public documentation, that data is out of your control.

  1. Tell the agent which image and what to hide:

    The dashboard screenshot in our getting-started guide shows a
    real customer's name, email, and account ID. Hide those before
    we publish it.
  2. Choose whether the fields should look empty or hold plausible sample data. Sample data reads better where a populated field is part of what the image teaches; an empty field is fine for a placeholder-style input:

    Replace them with sample data rather than leaving the fields empty.
  3. Review each covered region in the result. Confirm nothing readable remains — including partial text at the edge of a box, and the same value repeated elsewhere in the image, such as an email that also appears in a header.

If the agent cannot fully cover a region — text that runs under a graphic, for example — it still delivers the image. It flags the problem in its summary and in the pull request. Read that warning before you merge.

Add a highlight, arrow, or numbered callout

Section titled “Add a highlight, arrow, or numbered callout”

Annotations connect your prose to the pixels. Use them when a step refers to one control on a crowded screen.

  1. Describe what to mark and how:

    In the settings screenshot, outline the Save button and add an
    arrow pointing at the Advanced options toggle.
  2. For an interface with several parts, ask for numbered markers and refer to those numbers in your text:

    Add numbered markers to the editor screenshot: 1 on the file
    tree, 2 on the chat panel, 3 on the preview pane.
  3. Review the placement. The agent matches the shape and accent color of annotations on the sibling images beside it, so a new image looks like it belongs.

The agent puts markers on the image and leaves explanations to your prose. Text baked into an image is invisible to site search, unreadable by screen readers, and untranslatable. A numbered marker that your paragraph explains serves readers better than a caption drawn on the screenshot.

Annotations are repeatable. Asking for the same highlight twice doesn’t stack two outlines on top of each other.

Most images need more than one edit. Ask for all of them together and the agent applies them in the order that produces a safe result: cover information first, annotate second, crop last. Cropping first can leave real data in an edge the crop keeps, and annotating before covering can leave a marker pointing at a field the agent then hides.

Take the account settings screenshot in our onboarding guide:
hide the customer's name and email, highlight the Notifications
toggle, and crop it to the settings panel.

What the agent changes and what it leaves alone

Section titled “What the agent changes and what it leaves alone”
The agentDetail
Writes to the image’s existing pathThe edited image replaces the file your page already references, so no link needs updating
Leaves your repository untouched until you mergeThe change arrives as a pull request you review, like any other documentation change
Matches its neighborsPadding, width, theme, annotation shape, and accent color follow the sibling images beside it
Asks when a value might be realIn a session, if it can’t tell whether a name or number is genuine or sample data, it asks you. An unattended run covers the value instead of asking
Leaves prose aloneIt edits pixels only. For documentation that describes the interface incorrectly in text, use Update and review
Skips vector imagesSVG diagrams and logos stay untouched
Follows your call in a sessionWhether an image needs cropping, covering, or annotating is yours to decide — a capture from a demo account often needs none of it. A scheduled run given no instruction defaults to making the image publishable

Before you merge the pull request:

  • Every covered region is fully opaque, with no readable text at its edges.
  • No value you asked to hide survives elsewhere in the same image.
  • The cropped image still shows enough context for a reader to locate the element in the live product.
  • Annotations point at the controls your prose names, and the numbering matches your steps.
  • The image sits comfortably beside the others on the page in width and theme.
IssueSolution
The agent says it can’t find the imageGive it the path or the page that references the image. An image you attached to a chat message isn’t a file the agent can edit — commit it to your repository first.
Nothing happened to an SVGCropping and covering are raster operations. Export the diagram to PNG, or edit the SVG source directly.
The edit covered too much or too littleDescribe the region by what it contains rather than by position: “the panel with the Save button”, not “the top right”.
Text is still faintly visibleAsk the agent to extend the covered area past every edge of the text. Report any region it says it couldn’t fully cover.
The new image looks different from the others on the pageName the image you want it to match: “make it the same width and theme as the other screenshots in this guide”.
The screenshot you captured shows test data you don’t want publishedPoint the sandbox at an account with presentable data and recapture, rather than covering every field afterward.