mcpField
L
lovstudio:pdf2png

lovstudio:pdf2png

github.com/lovstudioDocuments7342 installsUpdated today
Repository

About lovstudio:pdf2png

lovstudio:pdf2png is a skill and shell script for converting PDF pages into one vertically stitched PNG, rendered at 2x scale using macOS CoreGraphics. It is for people who need a tall, shareable image of a PDF.

Key features

  1. 01Converts multiple PDF files
  2. 02Stitches pages into one tall PNG
  3. 03Renders pages at 2x scale
  4. 04Uses macOS CoreGraphics

Use cases

  1. 01Creating a long image from a PDF
  2. 02Sharing PDF content as an image
  3. 03Converting several PDFs in one run

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lovstudio/skills --skill lovstudio:pdf2png

After installing, type/lovstudio:pdf2pngin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

README.md
lovstudio-pdf2png
scripts/
pdf2png.sh

Details

From the project README

pdf2png — PDF to Vertically Concatenated PNG

Convert multi-page PDF files into a single tall PNG image. All pages are rendered at 2x scale (Retina quality) and stitched vertically. Uses macOS CoreGraphics directly — no pdftoppm, no ImageMagick, no Ghostscript.

When to Use

  • User wants to convert a PDF to a single PNG image
  • User needs a long screenshot-style image of a PDF
  • User wants to share PDF content as an image (WeChat, social media, etc.)

Workflow

Step 1: Identify PDF files

Locate the PDF file(s) the user wants to convert. Confirm the path(s).

Step 2: Execute
bash lovstudio-pdf2png/scripts/pdf2png.sh /path/to/file.pdf

Output: /path/to/file.png (same directory, same name, .png extension).

For multiple files:

bash lovstudio-pdf2png/scripts/pdf2png.sh file1.pdf file2.pdf file3.pdf
Step 3: Verify

Check the output file exists and report its size.

CLI Reference

ArgumentDescription
file1.pdf [file2.pdf ...]One or more PDF files to convert

Output is always <input>.png in the same directory as the input file.

Finder Quick Action

This skill can also be installed as a macOS Finder Quick Action for right-click conversion. See lovstudio/mac-pdf2png for the Automator workflow.

Dependencies

pip install pyobjc-framework-Quartz --break-system-packages

Comments

Markdown supported