1.1.0 • Published 10 years ago

daiquiri-psd v1.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
10 years ago

daiquiri-psd

Takes an pds file as input and outputs the needed JSON to generate the gallery using daiquiri

Installation

sudo npm install -g daiquiri-psd

(Or clone this repo)

Usage

  • Create your gallery layout in Photoshop, it should look like this. See the available block types below.

Screenshot

  • You don't need to order the layers/groups. Ordering will be done automatically by the y value of layers from top to bottom.

  • Run daiquiri-psd -o gallery.json gallery.psd

  • Done!

(Please take care, this script replaces the whole sections block of your json)

Block types

NameDescription
headerSection containing headline, subtitle and header image
headlineShould contain exactly one text layer, used for the headline
subtitleShould contain exactly one text layer, used for the subtitle
imageShould contain exactly one image layer, used for the background image
sectionA default section
titleShould contain exactly one text layer, used for the title of the section
textCan contain multiple text layers, which translate to paragraphs
gridCan contain one or more images that will be layed out in a grid
fullShould contain exactly one image, that will be layed out in full size

License

MIT

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago