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
  python-fu file_dds_save wrong number of paramters ? Thial 1 448 Jan 14, 2019 09:28
Last Post: paynekj
  Run Deskew plugin from Python-Fu console ramonvaldezz 12 3,421 Nov 18, 2018 21:48
Last Post: paynekj
  Problems with a bat script :( ThaUnknown_ 1 715 Mar 26, 2018 21:14
Last Post: paynekj
  Loading PythonFu Plugin: ImportError for .../python/ (GIMP 2.8.22/OSX/Py2.7.9) joroek 1 919 Jul 11, 2017 07:26
Last Post: ythgilb
  Setting text markup from python script Burbly 1 941 Sep 16, 2014 12:29
Last Post: Burbly

Forum Jump:

GIMP ForumPortalArchiveContactTermsRSS