---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Print 300 DPI Bleed and Sharp Export Skill"
description: "Installable SKILL.md teaching Claude Code, Cursor, and Codex to calculate exact 300 DPI print pixel targets (including 0.125-inch bleed and safe trim zones), reject under-sized 1MP AI images before press, route upscaling cleanly through 4x-UltraSharp, and stamp 300 DPI metadata with sharp."
canonical: "https://framesfield.com/skills/print-300dpi-cmyk-bleed-export-skill"
---

# Print 300 DPI Bleed and Sharp Export Skill

> Installable SKILL.md teaching Claude Code, Cursor, and Codex to calculate exact 300 DPI print pixel targets (including 0.125-inch bleed and safe trim zones), reject under-sized 1MP AI images before press, route upscaling cleanly through 4x-UltraSharp, and stamp 300 DPI metadata with sharp.

- **Canonical URL:** https://framesfield.com/skills/print-300dpi-cmyk-bleed-export-skill
- **Raw Payload URL:** https://framesfield.com/raw/skills/print-300dpi-cmyk-bleed-export-skill
- **Asset Type:** SKILL.md
- **Compatible Hosts:** Claude Code, Cursor, Codex
- **Target Creative Tool:** Sharp / 300 DPI Print / ComfyUI 4x
- **License:** MIT
- **Last Verified:** 2026-11-30
- **Source Reference:** https://sharp.pixelplumbing.com/api-output#withmetadata

## Setup & Install

```bash
mkdir -p .claude/skills/print-300dpi-bleed-export
curl -fsSL https://framesfield.com/raw/skills/print-300dpi-cmyk-bleed-export-skill -o .claude/skills/print-300dpi-bleed-export/SKILL.md

```

## Copyable Asset (SKILL.md)

````markdown
---
name: print-300dpi-bleed-export
description: Validate and prepare AI-generated rasters and Recraft V4.1 SVGs for commercial 300 DPI print production—computing exact pixel targets with 0.125-inch (37.5px/side) bleed margins, rejecting under-res 1MP masters, routing 4x neural upscaling when needed, and stamping 300 DPI PNG/TIFF metadata with sharp.
---

# Commercial 300 DPI Print & Bleed Pre-Flight Protocol

Whenever preparing AI artwork (FLUX 3 Image, Ideogram 4.6, Seedream 5.5, Qwen-Image 20B, Recraft V4.1) for physical printing—flyers, product packaging, posters, books, or merch—enforce these hard physical math checks before press handoff:

## 1. Exact Print Pixel & Bleed Formulas (Never Guess)
- **Trim Pixels:** `Width_in * 300` × `Height_in * 300`
- **Standard US/EU Full Bleed (`+0.125"` / `+3mm` per side = `+0.25"` total):** Add **`+75 px`** to total width and **`+75 px`** to total height (`38 px` per edge).
- **Safe Text Margin (`0.25"` inside trim):** Keep all typography, barcodes, and logos at least **`113 px`** (`38px bleed + 75px inner safe`) away from the outer bleed canvas edge.

| Print Piece | Trim Size | With 0.125" Bleed @ 300 DPI | Source Path |
| --- | --- | --- | --- |
| Business Card | 3.5 × 2.0 in | `1125 × 675 px` | Native 1–2K (FLUX 3 / Seedream 5.5) or SVG |
| Postcard | 6.0 × 4.0 in | `1875 × 1275 px` | FLUX 3 2K ($0.10) / Seedream 5.5 2K ($0.035) / Ideogram 4.6 2K |
| US Letter Flyer | 8.5 × 11.0 in | `2625 × 3375 px` | Ideogram 4.6 4K ($0.12) / FLUX 3 4K or ComfyUI 4x-UltraSharp |
| Tabloid Poster | 11.0 × 17.0 in | `3375 × 5175 px` | ComfyUI 4x-UltraSharp (`Skill 37`) or Native SVG |

## 2. Resolution Floor Gate (Reject Upscaling > 1.25x Without Neural Pass)
Read natural input pixel dimensions via `sharp(file).metadata()`.
- If `inputWidth < targetWidth * 0.85`, **STOP**—never stretch a `1024px` 1MP image `3x` with bicubic scaling. Route it through ComfyUI `4x-UltraSharp` (`Skill 37`) first, or regenerate at native 4K in `Ideogram 4.6` (`$0.12` Medium 4K / `$0.20` High 4K) or `FLUX 3 Image` 4K (`$0.607`; Klein 4K `$0.036`). Note that `Seedream 5.5` caps at 2K (`≤4.62 MP`), so upscale 2K Seedream plates via `4x-UltraSharp` before large flyer or poster runs.
- For logos, emblems, barcodes, and technical packaging diagrams, **always keep them as native vector `.svg`/PDF** (`Recraft V4.1` / Illustrator)—never rasterize vector logos into 300 DPI bitmaps.

## 3. Stamp 300 DPI Print Metadata & Lossless Export (`sharp`)
```bash
node --input-type=module -e "
import sharp from 'sharp';
await sharp('upscaled_4x.png')
  .resize(2625, 3375, { fit: 'cover', kernel: sharp.kernel.lanczos3 })
  .withMetadata({ density: 300 })
  .tiff({ compression: 'lzw' })
  .toFile('letter_flyer_300dpi_bleed.tif');
"
```

## 4. CMYK Gamut Warning
Electric sRGB neons (`#00FF88`, bright cyan, hyper-saturated magenta) shift duller when printed in CMYK offset ink. Favor natural daylight palettes and always request your print vendor's ICC CMYK profile (e.g., `GRACoL2006` or `FOGRA39`) for final PDF/X-1a pre-press conversion.
````

## Example Input

```text
"Check whether hero_plate.png (2048x2048) is sharp enough for an 11x17 poster at 300 DPI with 0.125-inch bleed, and generate a 300 DPI LZW TIFF once upscaled."
```

## Expected Output

```text
- Computes 11x17 + bleed @ 300 DPI = 3375x5175 px (17.5 MP); rejects 2048x2048 direct stretch (only 120 DPI) and routes through ComfyUI 4x-UltraSharp (Skill 37) first.
- Downsamples upscaled master cleanly via Lanczos-3 to exact 3375x5175 px, stamps density: 300, and exports lossless LZW TIFF.
```

## Requirements

- Node.js 18+ with `sharp` installed
- Optional ComfyUI `4x-UltraSharp` (`Skill 37`) when source plates fall below 85% of target print pixels

## Known Limits

- Always embed crisp packaging text, barcodes, and vector logos on a separate vector layer in Figma/InDesign/Illustrator before final PDF/X-1a press export
- Sharp outputs RGB/TIFF cleanly; apply your printer's exact CMYK ICC profile (`FOGRA39` / `SWOP` / `GRACoL`) during final PDF pre-press

## Implementation Notes

## Pair with 4K generation and local 4x upscaling

See full pixel/DPI math in [Guide 09: AI Image Craft, Vector SVGs and Brand Design Systems](/guides/ai-image-and-brand-design-systems-guide) and upscale 1MP renders locally for `$0` using [Skill 37: ComfyUI FLUX High-Res 4x Upscale Graph](/skills/comfyui-flux-upscale-and-inpaint-graph).
