Gimp Photography Words

Straighten and Crop with the GIMP

One of the more awkward tasks to do in the GIMP is straightening horizons. You have to manually rotate the image using that tool which always seems to be fairly hit and miss.

I had hoped that GIMP 2.6 would have the “draw a line and rotate” function that Bibblepro and I think Photoshop have but unfortunately it’s not there. Not to worry because the Straighten and Crop plugin by Bert Hinz does the job too! (There’s another Straighten and Crop plugin too. I haven’t tried it. What’s it like?)

Install the plugin by copying the .py file into .gimp-2.6/plug-ins/. You might need to chmod it to make it executable. Fire up the gimp and using the Path tool (press B) mark two points on the horizon with left clicks of the mouse. Run the plugin (from Image->Transform->Straighten and Crop) and it will rotate the image.

Nice and simple and has worked on the couple of images I tried it on. (via)

By Donncha

Donncha Ó Caoimh is a software developer at Automattic and WordPress plugin developer. He posts photos at In Photos and can also be found on Twitter.

3 replies on “Straighten and Crop with the GIMP”

Thanks for the link to the plugin – but where do I find that function in Bibblepro? Do I need a plugin for that?


In Bibble 4 look for the icon right underneath the “Browser” menu item that looks like a rotated landscape photo. I’ve used that a few times and it works well. Doesn’t crop either which is how I prefer it. I may edit the Python script and remove that bit.

I’ve been looking for a straighten feature for The GIMP for a long time. It would be great if I could get this plugin to work. I went to Bert Hinz’s site, but when I try to download his python script it just gives me a 403 permission denied error. If you’ve got the script and it works for you, would you mind posting it (if you feel that is appropriate), or Emailing it to me? Thanks.

Leave a Reply

%d bloggers like this: