img-grid

Overlays a numbered grid on images using Python and Pillow.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Alex1980Alex/1C-Framework --skill img-grid-alex1980alex
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: img-grid
Source: https://github.com/Alex1980Alex/1C-Framework/tree/main/external/cc-1c-skills/.claude/skills/img-grid
Command: npx skills add https://github.com/Alex1980Alex/1C-Framework --skill img-grid-alex1980alex

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Pillow, and includes scripts (resource) components.

What problem does it solve?

This Skill helps you measure image layouts accurately by overlaying a numbered grid, making it easier to identify column boundaries, row spans, and proportional spacing in screenshots or scanned forms.

Core Features & Use Cases

  • Numbered Grid Overlay: Adds visible vertical and horizontal guides with line numbers for precise counting.
  • Layout Analysis: Useful when inspecting printed forms, wireframes, or document screenshots before recreating them as structured templates.
  • Practical Example: If a form has uneven columns or multiple table regions, you can use this Skill to compare boundaries and derive a consistent base grid for layout reproduction.

Quick Start

Ask the Skill to overlay a numbered grid on your image and save the annotated result so you can inspect column and row proportions directly.

Frequently Asked Questions about img-grid

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I measure column boundaries and row spans in a scanned form or screenshot?

To measure column boundaries and row spans in a screenshot or scanned form, you can overlay a numbered grid on the image. This adds visible vertical and horizontal guides with line numbers for precise counting and proportional spacing analysis.

What is the best way to analyze image layouts for template extraction before recreating a document?

Analyzing image layouts for template extraction involves overlaying a numbered grid to compare boundaries and derive a consistent base grid. This helps identify uneven columns or multiple table regions before recreating them as structured templates.

Can I use Python and Pillow to add numbered grid overlays to images for layout measurement?

Yes, you can use Python with Pillow to render labeled guides and apply a numbered grid overlay to images. It supports configurable column and row counts to measure layout proportions and saves an annotated output image.

Does this grid overlay approach work for wireframes and mockups with uneven columns?

Yes, applying a grid overlay works for wireframes and mockups with uneven columns. By adding numbered guides, you can inspect column and row proportions directly, making it easier to compare boundaries and derive a consistent base grid.

How do I configure the column and row counts when applying a layout grid to an image?

You can configure column and row counts by specifying your desired numbers when applying the layout grid. The tool then renders labeled vertical and horizontal guides according to those settings and saves the annotated output image.

What are the limitations of using an image grid overlay for document layout analysis?

An image grid overlay provides a static, visual reference for measuring document layouts but does not automatically extract structural data. You must manually count the column boundaries and row spans from the annotated output image to reproduce the template.