Re: [wish] alignment rotation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



saulgoode@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
Quoting Rob Antonishen <rob.antonishen@xxxxxxxxx>:

  
there is such a plugin. I think I saw it in the Meet the Gimp forums.
    

I wrote the following script a while back for a coin collector who  
wanted to easily crop his scans and rotate them so that the coin was  
oriented properly.

The interface I used was to click-drag a path from the top of the coin  
to the bottom. The resulting path had only one anchor (at the coin's  
top) but the control handle was used as the second point.

The script would require some modification but might provide a kludgy  
functionality for those needing it.

http://flashingtwelve.brickfilms.com/GIMP/Scripts/sg-rotate-to-path-points.scm


A discussion over the evolution of the script took place on the  
GIMPtalk forums:

http://www.gimptalk.com/forum/-script-fu-efficient-rotating-&-cropping-tool-t32052.html-st=0&sk=t&sd=a
Not sure whether its transient or permanent but above URL gives:
SQL ERROR [ mysql4 ]
Table './gimptalk_lbsql/phpbb_sessions' is marked as crashed and should be repaired [145]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
I found it in Google-cache at: http://tinyurl.com/qsoekx or:
http://www.google.com/url?sa=t&source=web&ct=clnk&cd=1&url="">
ttp%3A%2F%2F74.125.95.132%2Fsearch%3Fq%3Dcache%3A_D5mPzozc2I
J%3Awww.gimptalk.com%2Fforum%2F-script-fu-efficient-rotating
-%2526-cropping-tool-t32052.html%2Bscript-fu%2Befficient%2Bc
ropping%2Brotating%2Btool%26cd%3D1%26hl%3Den%26ct%3Dclnk&ei=
-AcNSs6-HZvMMIzdnLcG&usg=AFQjCNEPHJMcZdNESQ2G7123a3IN04Uh0w&
sig2=rYkYIcfwZHEse-9-8zvxaA

I grabbed your  script from flashingtwelve.brickfilms URL above, set a path with Path tool and when I ran it (GIMP 2.6.6 - Windows XP SP3) got this in the error console:
  GIMP Error
Calling error for procedure 'gimp-image-crop':
Procedure 'gimp-image-crop' has been called with value '-160' for argument 'offx' (#4, type GimpInt32). This value is out of range.

  GIMP Warning
Plug-In 'Rotate To Path Point' left image undo in inconsistent state, closing open undo groups.

  GIMP Error
Execution error for 'Rotate To Path Point':
Error: Procedure execution of gimp-image-crop failed on invalid input arguments: Procedure 'gimp-image-crop' has been called with value '-160' for argument 'offx' (#4, type GimpInt32). This value is out of range.
I notice that at the bottom of the original conversation the OP (StefanP) has a recent  unanswered problem (Sun Apr 26, 2009 2:18 am) after updating to GIMP 2.6 (not exactly the same error as  I got):
It is me again. After upgrading to Ubuntu 9.04 and Gimp 2.6 I am now getting the following error after setting the path and executing the script:

Execution error for 'Rotate To Path Point':
Error: Bad syntax of binding spec in let* : ((vectors) (stroke-id) (points) (x1) (y1) (x2) (y2) (center-x) (center-y) (radius) (angle) (foo (car (gimp-image-get-filename image))))
-- 
Regards ... Alec   (buralex@gmail & WinLiveMess - alec.m.burgess@skype)
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux