Transform a trapezium into a rectangle
Solution 1
In GIMP, it is called the perspective tool. I think it is the same in Photoshop.
There is an icon for it in the menu on the left. It looks like a trapezoid with two arrows at the bottom corners.
Solution 2
paint.net will do this - you're looking for the 'layers', 'rotate/zoom' option. just move the ball to get it aligned
Solution 3
ImageMagick gives you the -distort Perspective
option. Like explained in Perspective Distortion:
convert image.jpg -distort Perspective '7,4 4,3 4,1 4,1 85,1 100,1 85,2 100,3' result.jpg
Solution 4
I know there already is an accepted answer, but Hugin that can also be used to fix perspectives in pictures, and is much better at it than a regular photo editing software. There is a tutorial on their website explaining how to do this.
Related videos on Youtube
Phuong Nguyen
Updated on September 17, 2022Comments
-
Phuong Nguyen over 1 year
I used my iPhone to capture a painting. However, the angle was not perfect, so instead of getting a straight rectangle, I get a trapezium. I want to transform this trapezium back into a rectangle (using some affine transformation). However, I cannot find a good way to do it. Please advise.
-
Admin almost 13 yearsAs in the dupe - have a look at Imagemagick imagemagick.org/script/index.php
-
-
Phuong Nguyen about 14 yearsThanks. This software is amazing. It deserves to be an answer, though.