Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie: Python script error
#2
Can't see anything wrong in the code. Could be something before it, that, combine with the "import glob", makes a syntax error. Try putting a line comment, or some meaningless statement first o see f the syntax error moves.

This said, Gimp uses Python v2 (2.7.22 IIRC) and comes with its own Python runtime on Windows. Installing another Python could break Gimp's Python (you may have to install Gimp after you install your other python).

If you are only doing simple like brightness/contrast, use ImageMagick, it is designed to be used in scripts. See http://www.imagemagick.org/Usage/color_mods/#level
Reply


Messages In This Thread
Newbie: Python script error - by mike_b - 10-07-2020, 05:27 PM
RE: Newbie: Python script error - by Ofnuts - 10-07-2020, 08:05 PM

Forum Jump: