question about photoshop action (image size)

hello, Is anybody know how to fit image with canvas size through action?
I have one image1 and I need put another on new layer with image1 proportions (or canvas size) both width and height something like snap to corners. to make it work equally for any proportions

Thanks a lot

If I understood correctly simply place photo and manipulate with Free Transform Tool (Ctrl+T). It does not matter if you go over the canvas only that part will not be seen, if you use some Double Exposure action you can also adjust it action finish.

hi i think u can make a stop in the action and use the rectangle selection tool with fixed measures and then crop …

thanks, I thought so too