GithubHelp home page GithubHelp logo

imranm847 / psd-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kartsims/psd-cli

0.0 2.0 0.0 9 KB

Convert to PNG and extract text from Photoshop files using the CLI

JavaScript 100.00%

psd-cli's Introduction

PSD from CLI

Convert to PNG and extract text from Photoshop files using the CLI

Requirements

This tool has no native dependencies (no need for ImageMagick or even Photoshop) thanks to the great work done by the folks of PSD.js. Unfortunately, not all image modes and depths are supported yet.

You just need to have a recent version of NodeJS installed on your system.

Install

npm install -g psd-cli

Usage

Convert a single file

psd path/to/my_psd_file.psd -c
# Creates path/to/my_psd_file.png

Extract text from a single file

psd path/to/my_psd_file.psd -t
# Creates path/to/my_psd_file.txt

Preview a single file

psd path/to/my_psd_file.psd -o
# Still creates path/to/my_psd_file.png

Multiple file handling

psd *.psd -o
# Creates PNG files and opens them in your default image preview software

Help

Full usage available by typing psd --help

Usage: psd [options] <file...>

Options:

  -h, --help     output usage information
  -V, --version  output the version number
  -c, --convert  Convert to PNG file named <FILENAME>.png
  -t, --text     Extract text content to <FILENAME>.txt
  -o, --open     Preview file after conversion (triggers -c option)

Upcoming features

The text extraction feature is still experimental. If you experience any issues with it, please let me know by filing an issue on GitHub and attach your PSD file.

There are many cool features available around PSD files. Most of them are covered by other NPM tools. Again, throw in an issue on GitHub to discuss about what would be useful to you.

psd-cli's People

Contributors

kartsims avatar

Watchers

James Cloos avatar  avatar

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.