activeLayer; if (foto) { resizeLayer(foto); } else { alert("No active layer found."); } } function resizeLayer(layer) { // Get the bounds of the active layer var bounds = layer.bounds; var width = bounds[2] - bounds[0]; var height = bounds[3] - bounds[1]; /...
activeLayer; if (foto) { resizeLayer(foto); } else { alert("No active layer found."); } } function resizeLayer(layer) { // Get the bounds of the active layer var bounds = layer.bounds; var width = bounds[2] - bounds[0]; var height = bounds[3] -...
activeLayer; if (foto) { resizeLayer(foto); } else { alert("No active layer found."); } } function resizeLayer(layer) { // Get the bounds of the active layer var bounds = layer.bounds; var width = bounds[2] - bounds[0]; var height = bounds[3] - bounds[1]...