Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vladyslav-dotsenko/411083ebd229877b41035ef4a3745277 to your computer and use it in GitHub Desktop.

Select an option

Save vladyslav-dotsenko/411083ebd229877b41035ef4a3745277 to your computer and use it in GitHub Desktop.
frame.json
{
"id": "custom-frame",
"title": "Custom Frame Test",
"width": 479,
"height": 479,
"description": "custom frame test",
"isCustom": true,
"parameters": [],
"layers": [
{
"id": "image-area",
"type": "image",
"name": "Content Area",
"visible": true,
"zIndex": 1,
"properties": {
"alignX": "left",
"alignY": "top",
“x”: 54,
“y”: 54,
"width": 371,
"height": 371,
"imageUrl": "{{croppedImage}}"
}
},
{
"id": "frame-area",
"type": "image",
"name": "Frame Area",
"visible": true,
"zIndex": 2,
"properties": {
"alignX": "left",
"alignY": "top",
“x”: 0,
“y”: 0,
"width": 479,
"height": 479,
"imageUrl": "https://vladyslav-dotsenko.github.io/crop-chop/assets/frame.png"
}
}
],
"exportSizes": [
{
"name": "original",
"width": 600,
"height": 600,
"scale": 1
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment