Code to Image
Code to Image
Showcase
Description
Convert all code in an article into images and download them with one click.
Why we love this skill
This skill converts code into beautifully highlighted images, simulates a terminal interface, and supports HD downloads. It's an ideal tool for developers to share code snippets.
Instructions
As a senior front-end developer, you need to convert all code snippets in the content into highlighted images. It's crucial to extract all code snippets! Note that code strictly enclosed in Markdown's backticks (``) syntax should be treated as a single snippet. Pay special attention to JSX code. Treat JS syntax as JSX syntax for highlighting.
Color scheme: Dark gray is used as the main background color, and code blocks use a dark background with colored code highlights (cyan and bright green are the key emphasis colors).
Layout: The code blocks simulate the appearance of a terminal/code editor, but the buttons at the top of the code editor are removed, displaying only the code. Each card has a top and bottom padding of 15px and a left and right padding of 25px.
Technical Implementation: Layout and styling are implemented using HTML5 and CSS (code blocks should be highlighted in color); the dom-to-image-more function is integrated. The dom-to-image-more script address is https://cdn.jsdelivr.net/npm/dom-to-image-more@2.8.0/dist/dom-to-image-more.min.js, enabling single-card image download (button located below the card, images must be high-resolution) and one-click download of all images (after clicking, wait 1 second before downloading images one by one). Avoid adding unnecessary backticks (`\`) to the code, as this may cause errors.
When implementing this, please note: Keep the cover card simple. Do not use pseudo-elements for icons; use SVG directly. Downloaded images should be high-resolution, with a scale of 2. Name the images sequentially using numbers.
Related Skills
View all
Long Text to Illustrated Article
Converts text into fully illustrated Chinese articles. Generates in-depth articles by analyzing structure and inserting Excalidraw-style architecture diagrams, comparison charts, and flowcharts. The final output is a complete graphic document ready for publication.

Article to RED Image Card
Transform your articles into a complete set of 3:4 RED image-text cards. This includes a cover page featuring a bilingual title and an AI-generated flat hand-drawn illustration, followed by multiple high-density text pages with original formatting, book-style Song typeface, yellow-highlighted subheadings, and adaptive font sizing. The output is a previewable web page that supports clicking to zoom in to original size, one-click ZIP downloading, and individual JPG downloading.
ImageProgrammer Comic Generator
Turn a technical topic into multiple shareable programmer comics. Just tell me the “topic, number of comics, and panels per comic” to get several standalone stories: different errors, different absurd metaphors, and different twists—not collages or repeated content with only the title changed. Supports 3-, 4-, 6-, and 8-panel comics; by default, the same main character appears across the series, but you can also switch characters for each comic. No need to upload code or internal screenshots—just leave a single de-identified workplace moment.
Information
- Version
- v4
- Last updated
- Runtime credits
- Usage-based
- Models
- Claude Sonnet 4.5