How to recreate a JSON file back into PSD
I have a JSON file with all the metadata needed of the Original PSD File, it looks the follow.
The dimension will be the canvas size and each layer has its layername which will also be the name of the corresponding image in the same folder as the json file. and has the layer dimension and position coordinates. Can this be done through jsx? I tried doing but it was messing up with the image and canvas sizes. Thankyou
{
"dimensions": {
"width": 600,
"height": 500
},
"layers": {
"BG": {
"layer_number": 1,
"bounding_box": {
"position": {
"left": 0,
"top": 0
},
"dimensions": {
"width": 600,
"height": 500
}
}
},
"icon_parade_5": {
"layer_number": 2,
"bounding_box": {
"position": {
"left": 31,
"top": 350
},
"dimensions": {
"width": 269,
"height": 18
}
}
},
"shopnow_reg_dkgray_circlecopy2": {
"layer_number": 3,
"bounding_box": {
"position": {
"left": 31,
"top": 442
},
"dimensions": {
"width": 176,
"height": 33
}
}
},
"bannercopy": {
"layer_number": 4,
"bounding_box": {
"position": {
"left": 29,
"top": 113
},
"dimensions": {
"width": 247,
"height": 126
}
}
},
"m365_c_gray": {
"layer_number": 5,
"bounding_box": {
"position": {
"left": 32,
"top": 31
},
"dimensions": {
"width": 184,
"height": 30
}
}
},
"Rectangle1copy": {
"layer_number": 6,
"bounding_box": {
"position": {
"left": 321,
"top": -2
},
"dimensions": {
"width": 281,
"height": 503
}
}
},
"Spicy-Small-Business_WIN22_Product_Shoot_HPSpectrex360_TentView_0171_RGB_03_50": {
"layer_number": 7,
"bounding_box": {
"position": {
"left": 228,
"top": 80
},
"dimensions": {
"width": 490,
"height": 462
}
}
},
"Layer1": {
"layer_number": 8,
"bounding_box": {
"position": {
"left": 286,
"top": -13
},
"dimensions": {
"width": 314,
"height": 149
}
}
}
}
}
