Skip to content

This example code is for PhotoPainter, which is open-sourced in a friendly manner. If you find any bugs, please feel free to report them.

Notifications You must be signed in to change notification settings

waveshareteam/PhotoPainter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PhotoPainter

Waveshare Electronics

waveshare electronics
waveshare_logo.png


中文说明

本例程为 PhotoPainter 的示例代码,友情开源,有bug欢迎反馈。

相关资料地址:
PhotoPainter - Waveshare Wiki

图片制作

一、使用 Photoshop 制作散点图,然后导入到 SD 卡。参考教程:
E-Paper-Floyd-Steinberg - Waveshare Wiki

二、使用 图片制作工具-由Dr. Fedor G. Sarafanov 分享提供:
Image Tool by Dr. Fedor G. Sarafanov

三、使用我们提供的七色抖动图片转换工具。下载链接:
ConverTo7c_bmp.zip

图片转换工具使用

Windows 系统

  • 单张图片转换
    图片拖到 convert.exe 上即可完成转换。

  • 批量转换图片
    图片convert.execonverterTo7color_all.cmd 放在同一个文件夹中,然后双击 converterTo7color_all.cmd 文件即可进行批量转换。

MAC 系统:

图片convertconverterTo7color_all 放在一个文件夹

打开终端,进入对应的文件夹

cd xxxx/xxx/xxx/

  • 单张图片转换
    输入命令,给予 convert 可执行权限

    sudo chmod +x convert

    转换图片

    ./convert 图片名称

  • 批量转换图片
    要先对 convert 文件进行权限操作给予后才行

    输入命令,给予 converterTo7color_all.sh 可执行权限

    sudo chmod +x converterTo7color_all.sh

    转换图片

    ./converterTo7color_all.sh


English

This example code is for PhotoPainter, which is open-sourced in a friendly manner. If you find any bugs, please feel free to report them.

Related documentation can be found at:
PhotoPainter - Waveshare Wiki

Image Preparation

1.Using Photoshop to create a dithered image and then importing it to an SD card. For a tutorial, please refer to:
E-Paper-Floyd-Steinberg - Waveshare Wiki

2.Use the image-making tool - courtesy of Dr. Fedor G. Sarafanov:
Image Tool by Dr. Fedor G. Sarafanov

3.Using our provided 7-color dithering image conversion tool. Download link:
ConverTo7c_bmp.zip

How to Use the Image Conversion Tool

For Windows:

  • Single Image Conversion
    Drag the image onto convert.exe to complete the conversion.

  • Batch Image Conversion
    Place the images, convert.exe, and converterTo7color_all.cmd in the same folder. Double-click the converterTo7color_all.cmd file to perform batch conversion.

For MAC:

Place the images, convert and converterTo7color_all in the same folder.

Open the terminal and navigate to the corresponding folder:

cd xxxx/xxx/xxx/

  • Single Image Conversion
    Grant execution permission to convert:

    sudo chmod +x convert

    Convert the image:

    ./convert image_name

  • Batch Image Conversion
    You need to first grant execution permissions to the convert file.

    Grant execution permission to converterTo7color_all.sh:

    sudo chmod +x converterTo7color_all.sh

    Convert the images:

    ./converterTo7color_all.sh


About

This example code is for PhotoPainter, which is open-sourced in a friendly manner. If you find any bugs, please feel free to report them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published