Giter Site home page Giter Site logo

cepiloth / psd_sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from molecularmatters/psd_sdk

0.0 1.0 0.0 7.95 MB

A C++ library that directly reads Photoshop PSD files.

Home Page: https://molecular-matters.com/products_psd_sdk.html

License: BSD 2-Clause "Simplified" License

C 45.51% C++ 54.49%

psd_sdk's Introduction

psd_sdk

A C++ library that directly reads Photoshop PSD files. The library supports:

  • Groups
  • Nested layers
  • Smart Objects
  • User and vector masks
  • Transparency masks and additional alpha channels
  • 8-bit, 16-bit, and 32-bit data in grayscale and RGB color mode
  • All compression types known to Photoshop

Additionally, limited export functionality is also supported.

For more information, please go to: https://molecular-matters.com/products_psd_sdk.html

Directory structure

bin

Contains a Photoshop PSD file used by the sample code.

build

Contains Visual Studio projects and solutions for VS 2008, 2010, 2012, 2013, 2015, 2017, and 2019.

src

Contains the library source code as well as a sample application that shows how to use the SDK in order to read and write PSD files.

Platforms

At the moment, the SDK only compiles for Windows. As we are primarily a Windows developer, we don't plan on supporting OS X, Linux, or mobile platforms ourselves. We would gladly accept pull requests though, if anybody wants to help out.

Porting to other platforms

98% of the code is written in a platform-independent way already. If you want to port the SDK to other platforms, here are the things that need porting:

PsdInterleave.cpp:

Uses a few SSE2 intrinsics at the moment, should be fairly straightforward to port to C++.

PsdNativeFile.cpp:

Provides an implementation of the PsdFile interface and uses native Windows functions for async operations.

PsdEndianConversion.inl:

Uses either _byteswap_* or __builtin_bswap* functions. Either of those should be supported by MSVC, Clang, and GCC, but this needs porting for compilers that don't offer any of these functions.

PsdCompilerMacros.h:

Provides an abstraction over certain compiler/preprocessor features, and should already work for MSVC, Clang, and GCC.

psd_sdk's People

Contributors

molecularmatters avatar

Watchers

James Cloos 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.