# Aspect Ratio Cropper MCP for AI Agents MCP

> Aspect Ratio Cropper MCP calculates precise center-crop coordinates and pixel loss for any target aspect ratio. It helps you figure out the exact dimensions needed to resize images for different social media platforms without guessing. Use it to get perfect crops for TikTok, Instagram, and YouTube content instantly.

## Overview
- **Category:** utility
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_NKgJCwu0GW0aMTlDC9AChnarZLdh3nfYcugpWwJW/mcp
- **Tags:** aspect-ratio, cropping, image-dimensions, pixel-loss, social-media

## Description

When you're building a content pipeline or an app that handles user-uploaded photos, getting the math right for different social media dimensions is a constant headache. You don't want your agent guessing where to cut the image, potentially cutting off a subject's head or a key piece of text. This Connector handles the heavy lifting by calculating exact pixel boundaries for center-aligned crops. Instead of writing complex coordinate logic yourself, you can just tell your agent to figure out the perfect fit for a 9:16 TikTok video or a 4:5 Instagram post. It even helps you see how much of the original image is actually being discarded, which is huge for maintaining visual quality. It's one of the many specialized utilities you can find in the Vinkius catalog to make your AI more capable at specific, high-precision tasks like image processing. You get the exact X and Y offsets and the new width and height every time, so your output is consistent across every platform.

## Tools

### analyze_area_loss
Find out exactly how many pixels are being discarded during a crop. It helps you decide if a specific crop is too aggressive for your content.

### get_aspect_ratio_presets
Pull standardized dimensions for popular platforms like TikTok, Instagram, and YouTube. This saves you from having to memorize common social media requirements.

### calculate_crop_bounds
Get the exact rectangular boundaries for a center-aligned crop. It provides the X and Y offsets needed for precise image resizing.

## Prompt Examples

**Prompt:** 
```
I have a 1920x1080 image. What are the crop bounds for a 9:16 TikTok aspect ratio?
```

**Response:** 
```
For a 1920x1080 image and a 9:16 ratio, the new dimensions are **607x1080**. 

Here are the details:
* **X Offset:** 656
* **Y Offset:** 0

This will give you a perfectly centered vertical crop for TikTok.
```

**Prompt:** 
```
Calculate the area loss if I crop a 4000x4000 image down to 1080x1080.
```

**Response:** 
```
When cropping a 4000x4000 image down to 1080x1080, the process discards **14,977,600 pixels**. 

This represents a loss of approximately **93.02%** of the original image area.
```

**Prompt:** 
```
What are the aspect ratio presets available?
```

**Response:** 
```
Here are the standard presets you can use for common platforms:

* **TikTok:** 9:16
* **Instagram Portrait:** 4:5
* **Instagram Square:** 1:1
* **YouTube:** 16:9
```

## Capabilities

### Get exact crop coordinates
The Connector calculates the precise X and Y offsets needed for a center-aligned crop.

### Identify platform dimensions
Pull standardized aspect ratios for TikTok, Instagram, and YouTube instantly.

### Calculate pixel loss
Quantify exactly how much image data is removed during the cropping process.

### Find optimal crop areas
Determine the best rectangular boundaries to maximize content retention.

### Access standard presets
Quickly retrieve common social media dimensions to keep your content consistent.

## Use Cases

### TikTok Reel Conversion
A creator has a 16:9 video and needs to turn it into a 9:16 TikTok. The agent uses calculate_crop_bounds to find the best vertical slice.

### Instagram Ad Batching
A marketer needs to prep photos for both 1:1 squares and 4:5 portraits. The agent pulls presets and calculates the crop for both simultaneously.

### App Image Uploads
A developer wants to let users preview how their photo will look as a profile picture. The agent calculates the center-crop and shows the user the final dimensions.

### High-Res Photography
A photographer wants to know if a specific crop will lose too much detail. The agent uses analyze_area_loss to provide a percentage of the area removed.

## Benefits

- Stop guessing coordinates by using calculate_crop_bounds to get exact pixel offsets for any image size.
- Maintain visual quality by using analyze_area_loss to see exactly how much content is being cut away before you commit.
- Standardize your output by pulling common dimensions for TikTok, Instagram, and YouTube using get_aspect_ratio_presets.
- Automate image processing by letting your agent handle the math for batch-resizing photos for multiple platforms at once.
- Ensure consistent branding by getting the same center-crop results every time an image is processed for a specific platform.

## How It Works

The bottom line is you get precise, platform-ready crop coordinates without doing the manual math.

1. Provide the original image dimensions and your desired target aspect ratio.
2. The Connector calculates the new boundaries and the necessary X and Y offsets.
3. You get back the precise pixel coordinates and the percentage of area lost.

## Frequently Asked Questions

**Can the Aspect Ratio Cropper MCP help me resize images for TikTok?**
Yes, it provides the exact pixel coordinates needed to turn any image into a 9:16 vertical format for TikTok.

**How does the Aspect Ratio Cropper MCP handle different image sizes?**
You provide the original width and height, and it calculates the correct center-crop for your target ratio regardless of the starting size.

**Can I use Aspect Ratio Cropper MCP to find Instagram dimensions?**
Yes, it has a specific tool to pull standard presets for Instagram portraits, squares, and other common social platforms.

**Will the Aspect Ratio Cropper MCP tell me how much of my image is being cut?**
It can calculate the exact pixel loss and the percentage of the original area that is removed during the cropping process.

**Does the Aspect Ratio Cropper MCP work for YouTube thumbnails?**
It can provide the 16:9 coordinates for YouTube, along with the precise X and Y offsets needed to center-crop your content.

**How do I use the Aspect Ratio Cropper MCP for batch processing?**
You can have your AI agent loop through a list of images, getting the crop bounds for each one to automate your entire content pipeline.

**How do I calculate the crop area for a specific platform?**
You can use the `calculate_crop_bounds` tool. Provide your original image dimensions and the target ratio components (e.g., 9 and 16 for TikTok). The tool will return the new width, height, and the X/Y offsets needed for a center-aligned crop.

**Can I see how much of my image will be lost?**
Yes, the `analyze_area_loss` tool calculates exactly how many pixels are discarded and the percentage of the original area that is removed during the cropping process.

**Where can I find common aspect ratio values?**
Use the `get_aspect_ratio_presets` tool to retrieve a list of standardized ratios for popular platforms like Instagram, YouTube, and TikTok.