LSR Image Stack
A ZIP container that encapsulates the files and folders defining an image stack.
Extension
.lsr
Folder Contents
The LSR file root level contains folders for each image stack layer and a Contents.JSON file with the attributes for the image stack.
Contents.json File
Metadata, canvas size, and list of image stack layers (Table 33-1).
Key |
Type |
Description |
|---|---|---|
|
Dictionary |
Metadata for the author and format version of the image stack. |
|
String |
Use your bundle ID.
LSR files generated by Xcode use |
|
Number |
The format version of the LSR file. Use |
|
Dictionary |
Properties for the image stack. |
|
Dictionary |
The canvas size for the image stack. Defaults to the size of the background layer if the tag is not included. |
|
Number |
The width of the image stack canvas in pixels. |
|
Number |
The height of the image stack canvas in pixels. |
|
Array of dictionaries |
The layers in the image stack. |
|
String |
The name of the folder containing the layer. |
Sample Contents.json Files
Simple Image Stack
{"info" : {"author" : "com.developerName","version" : 1},"layers" : [{"filename" : "Foreground.imagestacklayer"},{"filename" : "Llama.imagestacklayer"},{"filename" : "Background.imagestacklayer"}]}
Image Stack with Canvas Size
{"info" : {"author" : "com.developerName","version" : 1},"layers" : [{"filename" : "Foreground.imagestacklayer"},{"filename" : "Llama.imagestacklayer"},{"filename" : "Background.imagestacklayer"}],"properties" : {"canvasSize" : {"width" : 2048,"height" : 1365}}}
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-09
