Auto rotate with a vector

This script lets you to rotate automaticaly your image. You have just to had a vector with the path tool and click on Image/Layer/Auto rotate.

Before :

After :

The image is from http://blog.photos-libres.fr/2008/10/21/paysage/.

AttachmentSize
auto-rotate-3(gimp2.7).scm4.45 KB
auto-rotate-3.scm4.47 KB
auto-rotate-2.scm2.93 KB
auto-rotate-1.scm2.54 KB
working-of-auto-rotate-script-2.pdf19.08 KB
working-of-auto-rotate-script-1.jpg43.38 KB
before.jpg59.72 KB
after.jpg60.06 KB

Comments

Thank you!

this is really simple and elegant solution, i like this!!!

Further instructions

Hey, neither of these scripts work for me *at all.*
Please specify *exactly* how to "had a vector with the path tool". All I get is crap about "divide by zero" and suchlike.
I'm thinking of getting rid of GIMP because there doesn't seem to be any way to join two halves of a scanned image AND it wrecked MS Paint's ability to load JPGs - which *can* VERY EASILY join two halves of a scanned image.

Auto Rotate

Watch this video of Auto Rotate in full screen, it should help you:

http://www.youtube.com/watch?v=AuifcBujvSk

I'm not entirely clear about what you mean by "join two halves of a scanned image". Do you mean joining two halves into GIMP from a scan, or joining two scanned images together AFTER they have been scanned?

GIMP can clearly join images (scanned or otherwise) without any problems. There are numerous ways of accomplishing this.

In regards to GIMP wrecking MS Paint's abiliity to load JPGs, that's not exactly what has happened, but it's an easy problem to fix. What operating system are you using?

pb

Hello,
I use Autorotate in Ubuntu 9.10 with gimp 2.6.
I have this error "There are not enough control points!". AnyNo matter the size of the path.
The newbie like me must know that it needs two click to define a path !
Don't drag'n'drop, it make just one point, not a line.

Excellent!

There is a fn just like this in PE. This is really good. Thanks!

script updated

I have updated my script. This new version can rotate to vertical if the angle (in the direct way) of the vector is in ]-3pi/4 ; -pi/4[ or in ]pi/4 ; 3pi/4[, or in degrees : in ]-135° ; -45°[ or in ]45° ; 135°[.
And now, it's not possible to have this error : "error division by zero".

Thanks for the update!

I've really needed this script for YEARS.

fail

I got a division by zero error. GIMP 2.6.7 on Windows.

What about in Windows 7, what

What about in Windows 7, what do you recommend? Sorry, I'm a new user.

Why there is "Error division by zero"

There is this error because the distance between the first point and the end point of the stroke measure 0.

This Usually Means

Probably means that you provided no angle or slant to the path points, therefore it cannot divide by a (zero) angle. Try putting a little bit of angle into the image (look at the images above).

Divide by zero

Whilst I agree with your reason for the error the script should check for division by zero and either do nothing or report a meaningful error to the user (e.g. "Angle of rotation is too small").

Nice and interesting utility

Compliments for the idea to use a vector/path in order to automatically rotate a layer.

Auto Rotate

Alternatively my script both rotates/straightens and crops (when used with the Post Rotate Crop script):

http://registry.gimp.org/node/18821

Great script

Very usefull script. It is very hard to rotate extra large pano by default GIMP tools.

Super!

Hi

what a wonderful script - thats what I need every days before

Thanks a lot

Lieben Gruß

Avarra

Syndicate content