i'm showing the action i made, i'm sorry if it's long most of it pictures: 1.so this is how i'm getting the image 2. I clean the background (either Select>Subject, JJ-Mack's Script to clear background, or manually: Lasso/Magic Wand/Quick Selection tool), then Image>Trim to see nothing left and i'm getting here: 3. as we can see it's not symmetric 4. I have an action from this point: Convert to Smart Object, Canvas Size to my needs: 1200x1200, and then Script: Fit Layer to Canvas (and i keep the aspect ratio) so the layer is exactly on the edges of the canvas: 5. I have couple of transforms i do the work for most carpets, we can see what they actually do on the left, the next one involves mostly enlarging next one involves small rotation now i align the carpet, first to horizontal center next align is to top edges so the top of the carpet will be on the line of the top of the canvas the next two transforms are just moving the carpet up to get rid of the white space created on the top-right corner, and afterwards more enlarging the last step before saving it is manual distortion that's it. i probably made a lot of Free Transform recording, but that's an action so it's running in the background, i would really want to improve that so it will work on more carpets, since other carpets in this angle can look different so my free transforms would not work as this one above.
... View more