
Juan Carlos S. answered 04/10/19
3D Instructor for Maya, 3DS Max, Zbrush, Blender, Fusion 360, and more
Hi,
Yes, you can do it with actions. Using you 2x3 ratio, open the the image, create a new action "image size", go to IMAGE>IMAGE SIZE and change the largest starting size to your largest final size. In your case, change the 3 for a 7 (keep the proportional ratio checked it), and Photoshop will calculate the other measurement for you, which in this case you would be 4.667. At this point you would only need to add the missing pixels to make 5x7. With the action still recording go to IMAGE>CANVAS SIZE and type replace the 4.677 for 5. This last action will expand the canvas filling the new pixels with either white, gray, black, background color or foreground color depending on what you chose on the dialog for the canvas size. I hope this help.
JCS
PS: if it is not clear enough let me know and I can give you a short free class on how to set it up.