Receber por email
← Voltar para o catálogo

code-to-image

Generate beautiful code snippet images with syntax highlighting. Use when users want to share code as an image, create code screenshots for social media, documentation, or presentations. Produces crisp, syntax-highlighted code with customizable themes, window chrome, and professional styling.

8estrelas
Atualizado há 9 meses

Ver no GitHub ↗

Como adicionar

/plugin marketplace add html2png/skills

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/code-to-image/svg)](https://www.skillteca.com.br/skills/code-to-image)

Skills relacionadas

Ver todas de Documentos →

Alerta por categoria

Receba novas skills de Documentos toda segunda

1 email curto, só com as skills novas de Documentos. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Code to Image API

Generate beautiful code snippet images with syntax highlighting via html2png.dev.

How It Works

  1. Write HTML with syntax-highlighted code (use Shiki or similar)
  2. Style with Tailwind CSS or custom CSS
  3. Send to /api/convert endpoint
  4. Get a shareable image URL

Endpoint

POST https://html2png.dev/api/convert

Example

curl -X POST "https://html2png.dev/api/convert?width=800&deviceScaleFactor=2" \
  -H "Content-Type: text/html" \
  -d '<!DOCT

[Description truncada. Veja o README completo no GitHub.]
Compartilhar X LinkedIn