✏️
AutomationPython

Image to Pencil Sketch

by CoderWanFeng

Image to Pencil Sketch is an Automation skill for Claude Code, published by CoderWanFeng in python-office.

1.3K stars299 forkson CoderWanFeng/python-officeAdded 2026/07/20Repository updated 2026/08/04
officepippypipythonweixin
Install in seconds
Install Image to Pencil Sketch
Copy Image to Pencil Sketch into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/CoderWanFeng/python-office/tree/develop/skills/image/pencil4img ~/.claude/skills/pencil4img

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/CoderWanFeng/python-office.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/image/pencil4img/SKILL.md in CoderWanFeng/python-office
Installs to
~/.claude/skills/pencil4img
Collection
One of 50 skills cataloged from this repository
Category
Automation2226 skills

What Image to Pencil Sketch does

Convert an input image to a pencil-sketch style file with python-office, choosing the output directory and filename without promising realistic results.

Image to Pencil Sketch is cataloged under Automation on DirSkills. Image to Pencil Sketch comes from a repository tagged office, pip, pypi, python and weixin.

Reviewed 2026-08-04

DirSkills review

This python-office wrapper applies its pencil4img operation to one input file and saves a pencil-sketch style image. The source describes a style conversion, not a guarantee of realism or a quality level.

  • input_img is required; output_path defaults to the current directory and output_name defaults to pencil4img.jpg. The call returns no value.
  • Visual results depend on the source image and implementation, so inspect the generated file rather than relying on the legacy description’s “realistic” claim.

Documentation

README

pencil4img Skill

使用 pencil4img 算法处理图像

功能描述

将输入的图像转换为铅笔画风格的图像。

所属分类

office/skills/image/pencil4img/

调用方式

from skills.image import pencil4img

pencil4img(
    input_img='./test.jpg',
    output_path='./',
    output_name='pencil4img.jpg'
)

参数说明

参数 类型 必填 默认值 说明
input_img str - 输入的图像文件路径
output_path str './' 输出图像的路径
output_name str 'pencil4img.jpg' 转换后的图像文件名

返回值

None

使用示例

from skills.image import pencil4img
pencil4img(input_img='./photo.jpg')

原始函数

office.api.image.pencil4img

Frequently asked about Image to Pencil Sketch

  • What else does CoderWanFeng publish alongside Image to Pencil Sketch?

    Image to Pencil Sketch is one of 50 skills that DirSkills catalogs from CoderWanFeng/python-office, the repository it ships in. Its siblings there include Add Image Watermark, Add Line by Type and Add Text Watermark. Each one is a separate skill with its own page in this directory, installs the same way Image to Pencil Sketch does, and is maintained by CoderWanFeng in that same repository. The rest of the collection is listed on the CoderWanFeng/python-office page.

  • How does Image to Pencil Sketch compare to other Automation skills?

    Image to Pencil Sketch ranks #669 by stars among the 2226 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Image to Pencil Sketch against them. Open each page to compare what they document and how they install.