Embedding image using a script - wrong size
Hi,
Using the following script I try to embed an image from one file to an image from another file. The files are at the same resolution (px and dpi). When embedded manually, it inserts correctly, filling the whole picture. But when embedded via scrip, it is resize to something around 10% of the original dimensions.
How can I fix it?
placeEmbeded(filePath);
function placeEmbeded(filePath) {
var actDesc = new ActionDescriptor();
actDesc.putPath(charIDToTypeID('null'), filePath);
actDesc.putEnumerated(charIDToTypeID('FTcs'), charIDToTypeID('QCSt'), charIDToTypeID('Qcsa'));
executeAction(charIDToTypeID('Plc '), actDesc, DialogModes.NO);
