When I use something like
function SavePNG(saveFile){
pngSaveOptions = new PNGSaveOptions();
activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);
}
it crops my image to match the size of the file. I have a smart layer in my psd file which I import other images to, and if one is smaller than the smart layer, it will be cropped which I can't have ? I'm not sure how to edit it.