Let's say I have many 1:1 ratio (square) images of varying pixel dimensions and I want to make them double the resolution and flip them on both X and Y axes so that they create a mirrored tile.

For example, going from this:

<img src="https://i.sstatic.net/Vkgd3.jpg" width="175"/>

To this:

<img src="https://i.sstatic.net/KNeEQ.jpg" width="350"/>

It's easy to do manually, but how can I program it as an Action?

All the operations for moving the duplicated and flipped layers that I can think of are specified in pixel dimensions, not percentages. This has so far prevented me from being able to define an Action that works for images of all sizes. 


  [1]: https://i.sstatic.net/Vkgd3.jpg
  [2]: https://i.sstatic.net/KNeEQ.jpg