Coder Social home page Coder Social logo

psd2fabric's Introduction

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.

psd2fabric's People

Contributors

haibingtown avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

psd2fabric's Issues

中文乱码

转出的json 里面,psd 有中文的时候 中文乱码了。

安装完成后无法执行psd2fabric命令

环境:Mac自带的python3.11版本
本地步骤:

  1. pip install psd2fabric执行完成
  2. 执行psd2fabric提示command not found: psd2fabric
  3. 查看/Library/Frameworks/Python.framework/Versions/3.11/bin下,没有找到psd2fabricpsd-tools是存在的
  4. 查看/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages目录下有psd2fabric文件夹

请问我该如何解决呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.