wuchao288 / psd2fabric

PSD2Fabric is a Python tool designed to parse PSD files into the fabric.js format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

优化

24/05/02 解决中文乱码和文字层部分属性没有时不能处理的问题

24/05/03 多行文本计算行高,json格式支持fabricjs 6.0

PSD2Fabric

License GitHub stars GitHub issues GitHub forks GitHub contributors

PSD2Fabric

PSD2Fabric is a Python tool designed to parse PSD files into the fabric.js format.

Features

  • Parse PSD files: Convert PSD files into fabric.js JSON format.
  • Support for the following features:
    • PSD structure
    • Group
      • Children relative position
    • Font
      • Size
      • Text content
      • Color
      • Bold
      • Alignment
    • Effect
      • Stroke
    • Others to Image

Usage

To use PSD2Fabric, follow these steps:

  1. Installation:
    pip install psd2fabric
    
  2. Usage:
     psd2fabric input.psd output.json
    

Replace input.psd with the path to your PSD file and output.json with the desired output JSON file.

Preview Online

Demo

test.json snapshot.jpeg

Contributing

We welcome and appreciate your contributions! Please refer to the contribution guidelines for more details.

About

PSD2Fabric is a Python tool designed to parse PSD files into the fabric.js format.


Languages

Language:Python 99.8%Language:Batchfile 0.2%