image-metadata

Extracts image dimensions, format, aspect ratio, and file size from JPEG, PNG, GIF, and WEBP headers.

5|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/chiptoe-svg/nanoclaw_gccourse --skill image-metadata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-metadata
Source: https://github.com/chiptoe-svg/nanoclaw_gccourse/tree/main/container/skills/image-metadata
Command: npx skills add https://github.com/chiptoe-svg/nanoclaw_gccourse --skill image-metadata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Manually checking an image's dimensions, aspect ratio, format, or file size is tedious, especially when you need to confirm if it fits a specific use case like a square logo or banner. This skill eliminates that hassle by automatically extracting all key image metadata directly from the file header with no extra tools required.

Core Features & Use Cases

  • Basic Metadata Extraction: Pulls format, file size, pixel dimensions, aspect ratio, orientation, and megapixel count from JPEG, PNG, GIF, and WEBP files.
  • No External Dependencies: Runs entirely with Python standard library, no need to install additional packages or use online tools.
  • Use Case Example: If you are preparing a social media profile picture and need to confirm an attached image is the correct square aspect ratio, this skill provides the exact dimensions and ratio instantly.

Quick Start

Use the image-metadata skill to retrieve the dimensions, format, aspect ratio, and file size of the attached image.

Frequently Asked Questions about image-metadata

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

FAQPage Schema
How do I check image dimensions and file size without installing extra packages?

The skill extracts image metadata from JPEG, PNG, GIF, and WEBP files to verify print resolution by providing exact pixel dimensions, megapixel count, and file size for quality validation.

Can I calculate the aspect ratio of a PNG or JPEG for social media asset preparation?

You only need a Python 3 runtime to extract core image metadata, as the script runs entirely on the Python standard library without requiring external dependencies or network access.

What image formats can I extract metadata from using only the Python standard library?

You can validate logo compatibility by extracting exact pixel dimensions and aspect ratio from image file headers, ensuring the attached image meets specific size requirements like a square profile picture.

Does this image metadata extraction approach work offline without network access?

Limitations include supporting only JPEG, PNG, GIF, and WEBP files, and extracting basic header metadata without parsing advanced EXIF tags or performing deep pixel analysis.