Skip to content

This example code is for PhotoPainter (B), 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_B

Repository files navigation

PhotoPainter (B)

Waveshare Electronics

waveshare electronics
waveshare_logo.png


中文说明

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

相关资料地址:
PhotoPainter - Waveshare Wiki

图片制作

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

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

图片转换工具使用

Windows 系统

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

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

MAC 系统

图片convertconverterTo6color_all 放在一个文件夹

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

cd xxxx/xxx/xxx/

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

    sudo chmod +x convert

    转换图片

    ./convert 图片名称

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

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

    sudo chmod +x converterTo6color_all.sh

    转换图片

    ./converterTo6color_all.sh


English

This example code is for PhotoPainter (B), 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

3.Using our provided 6-color dithering image conversion tool. Download link:
PhotoPainter_B-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 converterTo6color_all.cmd in the same folder. Double-click the converterTo6color_all.cmd file to perform batch conversion.

For MAC

Place the images, convert and converterTo6color_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 converterTo6color_all.sh:

    sudo chmod +x converterTo6color_all.sh

    Convert the images:

    ./converterTo6color_all.sh


About

This example code is for PhotoPainter (B), 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