Post Reply 

flip through python console problems

Sep 13, 2012, 18:43 (This post was last modified: Sep 13, 2012 18:44 by freewanderer.)
Post: #1
flip through python console problems
Hello everybody!

I'm having some problems with a python command. I'm working on an image that is 640x640. I'm trying to do a horizontal flip of a layer with this command:

pdb.gimp_item_transform_flip(layer, 320, 0, 320, 1)

the flip succeeds, but it generates a distortion on the flipped layer. When I try to flip that layer through gimp's interface, it is smooth.

I understood that the input values for the flip function were the layer, x and y of one point of the axis from wich the image will flip, and x and y of the end point of that axis. Am I doing something wrong?

Here is the failure in the flip that I mention. It cannot happen or the flip will be useless for what I am trying to do.

[Image: eye-failure-326968025?ga_submit=10%3A1347561735]


Attached File(s) Image(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 524 Jul 11, 2017 07:26
Last Post: ythgilb
  Setting text markup from python script Burbly 1 595 Sep 16, 2014 12:29
Last Post: Burbly
  Python-Fu Script Not Registering image_artist 1 515 Sep 14, 2014 13:24
Last Post: image_artist
  Bashing my head - Batch Python Script nmiltner 1 595 Sep 5, 2014 00:58
Last Post: nmiltner
  Help with python script and drawables nmiltner 3 603 Aug 28, 2014 16:09
Last Post: nmiltner

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS