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)


You might also like

If you like this post then please subscribe to my full RSS feed. You can also click here to subscribe by email. There are also my fabulous photos to explore too!

3 Comments

  1. Marcus Reply

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

    Thanks!
    Marcus

    • Donncha Reply

      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.

      http://inphotos.org/

  2. David Reply

    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.

    http://drueck.net

Leave a Reply

%d bloggers like this: