1

Consider this image:

enter image description here

I know the aspect ratio. I would like to turn this skewed rectangle to rectangle with correct aspect ratio, as big as possible.

I can use perspective transformation in GIMP, but that doesn't allow me to control the aspect ratio of the result. Also, there are no guidelines for horizontal and vertical lines, so it's hard to get it right.

2

Start the Perspective tool (backward). Set the tool to "Corrective (Backward) directiion" mode in the Tool options dialog. Drag the markers in the four corners of the image to the four corners of the painting, hit "Transform" in the side dialog.

enter image description here

  • See the "Clipping" options for what to do with the surroundings of the image.
  • You may have to scale the image (on X or Y only) to achieve the original aspect ratio
  • In your picture you have a very visible "barrel" lens distortion that is better fixed before your fix the perspective.
  • Thank you for your answer. Do you know how to fix the barrel distortion? – Tomáš Zato Nov 29 '17 at 14:38
  • You can try to eyeball something using Filters>Distorts>Lens distortion but this is more meant to add distortion than to fix an existing one. Otherwise there is a gimp-lensfun plugin but it depends if your camera+lens are supported or if you can create the necessary calibration data. – xenoid Nov 29 '17 at 15:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.