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
  Run Deskew plugin from Python-Fu console ramonvaldezz 11 3,013 Yesterday 09:00
Last Post: dmig
  Problems with a bat script :( ThaUnknown_ 1 568 Mar 26, 2018 21:14
Last Post: paynekj
  Loading PythonFu Plugin: ImportError for .../python/gimp.so (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 819 Jul 11, 2017 07:26
Last Post: ythgilb
  Setting text markup from python script Burbly 1 815 Sep 16, 2014 12:29
Last Post: Burbly
  Python-Fu Script Not Registering image_artist 1 757 Sep 14, 2014 13:24
Last Post: image_artist

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS