AI Agent Hub
Back to skills
Images to Word Document icon

Images to Word Document

Office Efficiency Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_565bc8fb/jyw-images-to-docx into your AI assistant by following https://skillhub.cn/install/skillhub.md.

About this skill

What problem it solves

When a workspace contains several images that need to be archived, reviewed, or annotated by hand, opening each image, resizing pages, inserting them into Word, and adding ruled lines at the bottom is error-prone and inconsistent. Images to Word targets this batch image-to-printable-document workflow by collecting supported images into A4 pages in filename order.

How it works

The skill’s core is scripts/create_doc.js, a Node.js script that uses the docx package to generate a .docx file. It scans workspace_dir for PNG, JPG/JPEG, GIF, BMP, and SVG files, places one image per page, and uses A4 size with 0.5-inch margins. Each page can include a ruled writing area at the bottom, which is useful for handwritten notes. Optional parameters include output_file, writing_lines, and image_ratio; the defaults cover common use: output to images_collection.docx, five ruled lines per page, and an image height of about 68% of the page. If an image dimension cannot be parsed, the script falls back to 800×600 and continues.

Boundaries

It does not interpret image content, run OCR, translate text, or rename images automatically; it only merges images into a Word document by filename. You do not need to pre-scan or count images before running it. Unsupported or unreadable files are skipped, so the final page count may be lower than the total number of files in the workspace.

Use Cases

  • Teachers batch review handwritten essay images by generating one-image A4 pages with five ruled lines.
  • QA engineers turn defect photos sorted by file name into a printable A4 Word archive.
  • Editors convert multiple SVG and PNG screenshots into one-page Word images for markup.
  • Ops staff merge event screenshots into Word with bottom ruled lines for written approvals.

Best For

  • Teachers who review many handwritten essays and need ruled annotation lines
  • QA staff who file numbered defect photos into printable Word documents
  • Editors who consolidate screenshots and illustrations into one-page Word markup sheets
  • Operations staff who prepare campaign image reviews with handwritten sign-off areas